2014-01-18 2 views
2

내가 윈도우 7 64 비트 컴퓨터를 파이썬 2.7.6에 대한 setuptools에 설치 및예외 파이썬에 setuptools에 설치시 2.7.6

C:\Python27\install_scripts>python ez_setup.py 
Extracting in c:\users\p\appdata\local\temp\tmpqhpyyh 
Now working in c:\users\p\appdata\local\temp\tmpqhpyyh\setuptools-2.1 
Installing Setuptools 
Traceback (most recent call last): 
    File "setup.py", line 17, in <module> 
    exec(init_file.read(), command_ns) 
    File "<string>", line 8, in <module> 
    File "c:\users\p\appdata\local\temp\tmpqhpyyh\setuptools-2.1\setuptools\__init__.py", line 11, in <module> 
    from setuptools.extension import Extension 
    File "c:\users\p\appdata\local\temp\tmpqhpyyh\setuptools-2.1\setuptools\extension.py", line 5, in <module> 
    from setuptools.dist import _get_unpatched 
    File "c:\users\p\appdata\local\temp\tmpqhpyyh\setuptools-2.1\setuptools\dist.py", line 15, in <module> 
    from setuptools.compat import numeric_types, basestring 
    File "c:\users\p\appdata\local\temp\tmpqhpyyh\setuptools-2.1\setuptools\compat.py", line 19, in <module> 
    from SimpleHTTPServer import SimpleHTTPRequestHandler 
    File "C:\Python27\lib\SimpleHTTPServer.py", line 27, in <module> 
    class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): 
    File "C:\Python27\lib\SimpleHTTPServer.py", line 208, in SimpleHTTPRequestHandler 
    mimetypes.init() # try to read system mime.types 
    File "C:\Python27\lib\mimetypes.py", line 358, in init 
    db.read_windows_registry() 
    File "C:\Python27\lib\mimetypes.py", line 258, in read_windows_registry 
    for subkeyname in enum_types(hkcr): 
    File "C:\Python27\lib\mimetypes.py", line 249, in enum_types 
    ctype = ctype.encode(default_encoding) # omit in 3.x! 
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf4 in position 1: ordinal not in range(128) 
Something went wrong during the installation. 
See the error message above. 

나는이 문제를 어떻게 해결할 수 다음과 같은 오류가있어? 파이썬 3.4 베타 용 setuptools를 설치하기 전에 잘 설치되었다.

답변

2

내부 Python 2.7.6 문제로 인해 문제가 발생했습니다. 2.7.5을 설치하십시오. 정상적으로 작동합니다. That's python 버그 추적기에서 그 문제에 대한 버그 보고서.