It is hard to avoid encountering something left over by history python 2
Code for .
If specified... Is required python 2.7
Code for , Please install python2.7.9
edition , Do not install an earlier version of it .
because python 2.7.9 It contains several unprecedented major changes :
The above is the conclusion , Here is the process of stepping on the pit . Installed python 2.7.0
Finally, I didn't climb out of the pit .
win10
Of cmd
perhaps powershell
in , perform python command , But the app store pops up , You can refer to Win 10 Use in Python The strange phenomena we encountered C:\Python27\python.exe .\setup.py install
. If after installation ,pip Not in the search path , You can refer to Python pip : Cannot be “pip”. I used the absolute path directly .pip
after , We can't use pip To install other python package . Because I can't access the warehouse .http://pypi.python.org/simple/
. and , What should have been visited https://pypi.python.org/simple/
C:\Python27\Scripts\pip.exe install chard
Downloading/unpacking chardet==1.1
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement chardet==1.1
No distributions at all found for chardet==1.1
Storing complete log in C:\Users\GRRJ\AppData\Roaming\pip\pip.log
python2.7.9