python 装 ez_setup.py
出错setuptools,pip,install,UnicodeDecodeError: 'ascii' codec can't decode byte.
解决:
打开Python27\Lib\mimetypes.py
在default_encoding = sys.getdefaultencoding() 前加后三行
if sys.getdefaultencoding() != 'gbk':
reload(sys)
sys.setdefaultencoding('gbk')
default_encoding = sys.getdefaultencoding()
相关文章
- python连接mysql出错【OperationalError: (1049, “Unknown database ‘test‘“)】
- 成功解决python3装库时ImportError: cannot import name ‘Feature‘ from ‘setuptools‘报错
- Anaconda 安装python时出错:Collecting package metadata (current_repodata.json): failed
- Python虚拟环境安装出错:TypeError: expected str, bytes or object, not NoneType
- pip install whl 错误版本解决(暨在win7 python3下装 opencv)
- Python缓存技术,装x新高度。
- python 装 ez_setup.py 出错
- django(python manage.py imgrate)同步数据库出错后的解决办法
- 运行 python *.py 文件出错,如:python a.py
- 有关python引用win32api出错的解决办法