我有Windows 7和WinPython 3.4.3.2;尝试从http://www.lfd.uci.edu/~gohlke/pythonlibs/#gensim
安装Gensim我收到了这个错误:
C:\Program Files (x86)\PowerCmd>pip install e:\Python\gensim-0.12.1-cp34-none-win_amd64.whl
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Processing e:\python\gensim-0.12.1-cp34-none-win_amd64.whl
Requirement already satisfied (use --upgrade to upgrade): six>=1.2.0 in m:\winpython-64bit-3.4.3.2\python-3.4.3.amd64\lib\site-packages (from gensim==0.12.1)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.3 in m:\winpython-64bit-3.4.3.2\python-3.4.3.amd64\lib\site-packages (from gensim==0.12.1)
Collecting smart-open>=1.2.1 (from gensim==0.12.1)
Using cached smart_open-1.2.1.tar.gz
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\Joomler\AppData\Local\Temp\pip-build-49b17fh6\smart-open\setup.py", line 28, in <module>
long_description = read('README.rst'),
File "C:\Users\Joomler\AppData\Local\Temp\pip-build-49b17fh6\smart-open\setup.py", line 21, in read
return open(os.path.join(os.path.dirname(__file__), fname)).read()
File "M:\WinPython-64bit-3.4.3.2\python-3.4.3.amd64\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 4345: character maps to <undefined>
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\Joomler\AppData\Local\Temp\pip-build-49b17fh6\smart-open\setup.py", line 28, in <module>
long_description = read('README.rst'),
File "C:\Users\Joomler\AppData\Local\Temp\pip-build-49b17fh6\smart-open\setup.py", line 21, in read
return open(os.path.join(os.path.dirname(__file__), fname)).read()
File "M:\WinPython-64bit-3.4.3.2\python-3.4.3.amd64\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 4345: character maps to <undefined>
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\Joomler\AppData\Local\Temp\pip-build-49b17fh6\smart-open\setup.py", line 28, in <module>
long_description = read('README.rst'),
File "C:\Users\Joomler\AppData\Local\Temp\pip-build-49b17fh6\smart-open\setup.py", line 21, in read
return open(os.path.join(os.path.dirname(__file__), fname)).read()
File "M:\WinPython-64bit-3.4.3.2\python-3.4.3.amd64\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 4345: character maps to <undefined>
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Joomler\AppData\Local\Temp\pip-build-49b17fh6\smart-open
答案 0 :(得分:0)
也许,错误信息表明,一个Python3'在Windows上的兼容性错误。