Eylo stackers,
I have pip installed successfully in python 3.7, however can't seem to install it for python 2.7.
I have tried doing this through downloading get-pip.py and running cmd in the directory where it is installed through
python get-pip.py
It then proceeds to update pip... Which provides with this
Collecting pip Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl Installing collected packages: pip Found existing installation: pip 18.1 Uninstalling pip-18.1: Successfully uninstalled pip-18.1 Successfully installed pip-18.1
I also tried py -2 get-pip.py
(which presented me with this error)
`Could not find a version that satisfies the requirement pip (from versions: ) No matching distribution found for pip`
I'm trying to run an ancient python 2.7 script, and to do so I need to install pyHook and other libraries.
Which is difficult because i can't seem to find a way to install pip to python 2.7.
There was no solutions for windows, only MAC..
I've been browsing stack for over 3 hours for solutions, so for the love of God don't tell me this has already been answered.
ERROR FROM Inside the directory of where get-pip.py is stored (sc, won't post code)
https://gyazo.com/f66252aed6abb3ee42a86e84440866bd
And yes, i'm in the right directory
This is what i tried:
C:\\Python27\\python -m pip install pyHook-1.5.1-cp27-cp27m-win_amd64.whl
This is the error.
pyHook-1.5.1-cp27-cp27m-win_amd64.whl is not a supported wheel on this
platform.
Storing debug log for failure in C:\Users\Callum\pip\pip.log
If you have Python 2.7.9+ installed, you already have pip, so you can install packages with:
C:\Python27\python -m pip install <package-name>
To run the script.py :
C:\Python27\python script.py
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.