我有Windows7和WinPython3.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
我从手动安装了https://pypi.python.org/pypi/smart_open设置.py. 在
有一个问题文件
README.rst
-我删除了其中的所有数据,以确保不会打印坏字符。在现在我需要手动安装Gensim,因为它会自动下载
smart_open
。不幸的是,我不能import gensim
。我有以下错误:但是如果我执行
^{pr2}$pip install -U gensim
,我可以看到所有的要求都已经得到满足:有什么提示吗?在
编辑15/08/2015:安装成功。我只是想重新安装旧的MPS。在
错误信息显示,这可能是Python3在windows上的兼容性缺陷。在
相关问题 更多 >
编程相关推荐