Error:
Traceback (most recent): File"C:\Python27\Python27\Scripts\pip-script.py", line9,inch<module>Load_entry_point ('pip==1.4.1','console_scripts','Pip') () File"C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\__init__. PY", line 148, in mainreturnCommand.main (args[1:], options) File"C:\Python27\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\basecommand.py", line 169, in maintext='\ n'. Join (Complete_log) Unicodedecodeerror:'ASCII'Codec can't decode byte 0xb1 inposition 34:ordinal notinchRange -)
Reason:
The CMD environment for Windows is GBK encoded by default, and PIP is encoded by default with UTF-8.
However, in Linux and Mac, the terminal environment defaults to UTF-8 encoding, so there is no error.
Solution:
Python directory python27\lib\site-packages build a file sitecustomize.py
Import sys sys.setdefaultencoding ('gbk'
Python will automatically run this file
PIP install error Resolution in Windows