需要安裝兩個工具:setuptools和pip。但是裝第一個的時候會報“UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1“。
參考Python 安裝setuptools報‘ascii’錯誤。
首先要把Python加入環境變量,其次
打開C:\Python27\Lib 找到mimetypes.py 在大概256行處找到default_encoding = sys.getdefaultencoding()
在這行前加上:
if sys.getdefaultencoding()!='gbk':
reload(sys)
sys.setdefaultencoding('gbk')