2016-11-22 30 views
8

Próbuję zainstalować gensim na Google Cloud przykład przy użyciu:Gensim Problemy z instalacją

pip3 zainstalować gensim

i to jest StackTrace gdy próbuję zaimportować gensim:

Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "/usr/local/lib/python3.4/dist-packages/gensim/__init__.py", line 6, in <module> 
    from gensim import parsing, matutils, interfaces, corpora, models, similarities, summarization 
    File "/usr/local/lib/python3.4/dist-packages/gensim/models/__init__.py", line 7, in <module> 
    from .coherencemodel import CoherenceModel 
    File "/usr/local/lib/python3.4/dist-packages/gensim/models/coherencemodel.py", line 30, in <module> 
    from gensim.models.wrappers import LdaVowpalWabbit, LdaMallet 
    File "/usr/local/lib/python3.4/dist-packages/gensim/models/wrappers/__init__.py", line 5, in <module> 
    from .ldamallet import LdaMallet 
    File "/usr/local/lib/python3.4/dist-packages/gensim/models/wrappers/ldamallet.py", line 43, in <module> 
    from smart_open import smart_open 
    File "/usr/local/lib/python3.4/dist-packages/smart_open/__init__.py", line 1, in <module> 
    from .smart_open_lib import * 
    File "/usr/local/lib/python3.4/dist-packages/smart_open/smart_open_lib.py", line 36, in <module> 
    import boto.s3.key 
    File "/usr/local/lib/python3.4/dist-packages/boto/s3/key.py", line 33, in <module> 
    import boto.utils 
    File "/usr/local/lib/python3.4/dist-packages/boto/__init__.py", line 1216, in <module> 
    boto.plugin.load_plugins(config) 
AttributeError: 'module' object has no attribute 'plugin' 

To jest wersja systemu Linux (wyjście lsb_release -a):

No LSB modules are available. 
Distributor ID: Debian 
Description: Debian GNU/Linux 8.6 (jessie) 
Release: 8.6 
Codename: jessie 

i to jest wyjście

pip3 zamrażać

Cython==0.25.1 
Flask==0.11.1 
Jinja2==2.8 
MarkupSafe==0.23 
Pillow==2.6.1 
Werkzeug==0.11.11 
beautifulsoup4==4.3.2 
boto==2.43.0 
bz2file==0.98 
chardet==2.3.0 
click==6.6 
colorama==0.3.2 
decorator==3.4.0 
gensim==0.13.3 
html5lib==0.999 
itsdangerous==0.24 
lxml==3.4.0 
matplotlib==1.4.2 
nltk==3.2.1 
nose==1.3.4 
numexpr==2.4 
numpy==1.11.2 
pandas==0.14.1 
pyparsing==2.0.3 
python-apt==0.9.3.12 
python-dateutil==2.2 
pytz==2012c 
requests==2.4.3 
scipy==0.14.0 
six==1.8.0 
smart-open==1.3.5 
stop-words==2015.2.23.1 
tables==3.1.1 
unattended-upgrades==0.1 
urllib3==1.9.1 
wheel==0.24.0 

Czy ktoś może mi dać wskazówki! To bardzo frustrujące.

+0

Have próbowałeś zainstalować przy użyciu "sudo easy_install -U gensim"? dla mnie pip nigdy nie działa, ale to rozwiązuje problem. –

+0

Próbowałem go "easy-install-3.4 gensim" po deinstalacji pip3, ale ten sam błąd! – VJune

Odpowiedz

2

Naprawiono go:

sudo pip3 odinstalować boto

sudo pip3 zainstalować boto

wydawało się być Google Compute chmura rzeczą.