Python方法安装easy_instal遇到解码错误,pythoneasy_instal,环境:win7 64位+
Python方法安装easy_instal遇到解码错误,pythoneasy_instal,环境:win7 64位+
环境:win7 64位+python 2.7.6
ez_setup.py代码如下:
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
是在官网下载的
但是,在本地运行的的时候:
python ez_setup.py
报错如下:
Now working in d:\personal\temp\tmpmsr6_i\setuptools-2.1Installing SetuptoolsTraceback (most recent call last): File "setup.py", line 17, in <module> exec(init_file.read(), command_ns) File "<string>", line 8, in <module> File "d:\personal\temp\tmpmsr6_i\setuptools-2.1\setuptools\__init__.py", line11, in <module> from setuptools.extension import Extension File "d:\personal\temp\tmpmsr6_i\setuptools-2.1\setuptools\extension.py", line 5, in <module> from setuptools.dist import _get_unpatched File "d:\personal\temp\tmpmsr6_i\setuptools-2.1\setuptools\dist.py", line 15,in <module> from setuptools.compat import numeric_types, basestring File "d:\personal\temp\tmpmsr6_i\setuptools-2.1\setuptools\compat.py", line 19, in <module> from SimpleHTTPServer import SimpleHTTPRequestHandler File "D:\Python\V2.7\lib\SimpleHTTPServer.py", line 27, in <module> class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): File "D:\Python\V2.7\lib\SimpleHTTPServer.py", line 208, in SimpleHTTPRequestHandler mimetypes.init() # try to read system mime.types File "D:\Python\V2.7\lib\mimetypes.py", line 358, in init db.read_windows_registry() File "D:\Python\V2.7\lib\mimetypes.py", line 258, in read_windows_registry for subkeyname in enum_types(hkcr): File "D:\Python\V2.7\lib\mimetypes.py", line 249, in enum_types ctype = ctype.encode(default_encoding) # omit in 3.x!UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 1: invalid start byteSomething went wrong during the installation.See the error message above.
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 1: invalid s
编码错误了,对Windows不熟,等高手回答
编橙之家文章,
相关内容
- 要列出Flask项目所有视图对应的路径如何写?,flask视图
- json数据提取分配应用求思路,具体要求如正文,json正文
- 用python开源软件快速搭建数据分析平台,python开源软件
- Python变量scope正确理解含义是什么,pythonscope,globe = 10
- 新手请问Python函数参数值传递问题,python函数,现在有两
- 如何用python实现openSSL的PHP代码?,pythonopenssl,function ge
- 我的网站爬虫python代码为什么不能正常运行,哪里写错了
- Python2.7 GBK阿拉伯文字转换问题,,简单说,想问如何把
- Py模块rrdtool导入问题时报undefined symbol: rrd_flushcached?,
- python mysql Commands out of sync相关的问题,pythoncommands,py
评论关闭