python-pip 安装使用问题

python-pip 安装使用问题

原因是pip安装python包会加载我的用户目录,我的用户目录恰好是中文的,ascii不能编码。解决办法是:

python目录 Python27\Lib\site-packages 建一个文件sitecustomize.py 
内容写: 
import sys 
sys.setdefaultencoding('gb2312')

posted @ 2018-03-09 00:30 NHZ-M 阅读(...) 评论(...) 编辑 收藏

相关文章: