pip - Getting UnicodeDecodeError when installing gensim on Ubuntu -
i trying install gensim lib on ubuntu using:
pip install --upgrade gensim however, got error this:
requirement up-to-date: gensim in /usr/local/lib/python3.4/dist-packages/gensim-0.12.0-py3.4-linux-x86_64.egg collecting numpy>=1.3 (from gensim) downloading numpy-1.9.2.tar.gz (4.0mb) 100% |################################| 4.0mb 146kb/s collecting scipy>=0.7.0 (from gensim) downloading scipy-0.15.1.tar.gz (11.4mb) 100% |################################| 11.4mb 55kb/s requirement up-to-date: six>=1.2.0 in /usr/lib/python3/dist-packages (from gensim) collecting smart-open>=1.2.1 (from gensim) downloading smart_open-1.2.1.tar.gz complete output command python setup.py egg_info: file "/tmp/pip-build-_nbem_oq/smart-open/setup.py", line 28, in <module> long_description = read('readme.rst'), file "/tmp/pip-build-_nbem_oq/smart-open/setup.py", line 21, in read return open(os.path.join(os.path.dirname(__file__), fname)).read() file "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] unicodedecodeerror: 'ascii' codec can't decode byte 0xc5 in position 4344: ordinal not in range(128) ---------------------------------------- command "python setup.py egg_info" failed error code 1 in /tmp/pip-build-_nbem_oq/smart-open does know how fix it?
it turned out can manually install gensim lib downloading , unzipping tar.gz source gensim, run:
python setup.py install
Comments
Post a Comment