更新pip时报字符集错误的解决方法
来源:互联网 发布:软件开发平台 什么是 编辑:程序博客网 时间:2024/05/16 08:20
执行python -m pip install --upgrade pip字符集错误
原因是pip安装python包会加载我的用户目录,我的用户目录恰好是中文的,ascii不能编码。解决办法是:
python目录 Python27\Lib\site-packages 建一个文件sitecustomize.py
内容写:
import sys
sys.setdefaultencoding('gb2312')
python会自动运行这个文件。
0 0
- 更新pip时报字符集错误的解决方法
- VS2008编译时报C1859错误的解决方法
- pip 碰到字符集的问题解决
- pip install时报错InvalidSchema: Missing dependencies for SOCKS support.的解决方法
- 因字符集设置错误导致imp导入错误的解决方法
- linux下pip安装mysql-python的错误解决方法
- pip安装python模块报延时错误的解决方法
- python中尝试pip install PIL,出现错误的解决方法
- ant javac编译时报字符集错误
- Flask使用SQLAlchemy时报字符集错误处理
- python中使用pip install 命令时报ssl缺失的错误
- SVN更新时报403错误
- MySQL删除更新数据时报1175错误的问题
- MySQL删除更新数据时报1175错误的问题
- 安装SQL Server2000时报挂起错误的解决方法
- 11G安装时报SEVERE: [FATAL] 错误的解决方法
- win7下PPPOE上网时报711错误的解决方法。
- startup mount 时报ORA-12514错误的解决方法
- IP
- 说说对javaee中的session的理解
- Number of Islands
- JSP中实现网页访问统计的方法
- 收集eclipse android开发常用快捷键
- 更新pip时报字符集错误的解决方法
- 面试杂谈(一)
- android5.0:图片和颜色
- git常用命令
- 怎样下载eclipse
- Activity 的停止与重启
- git差异对比
- hashmap的一点学习
- Knowledge 知识库Wiki WordPress主题 论坛