Home > other >  Import gensim error, solution, very grateful
Import gensim error, solution, very grateful

Time:11-29

Through anaconda3 jupyter notepad import gensim times wrong, beg god give a solution, as a Python small white headphones, want to run a topic model, thank you very much

An error code below
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
DistributionNotFound Traceback (the most recent call last)

- & gt; 1 the import gensim
2 the from gensim import corpora
3 the import pyLDAvis. Gensim

/usr/local/anaconda3/lib/python3.7/site - packages/gensim/set py in & lt; module>
3 ", "
"4
- & gt; 5 the from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils # noqa: F401
6 import logging
7

/usr/local/anaconda3/lib/python3.7/site - packages/gensim/parsing/set py in & lt; module>
2
# 3 from the porter import PorterStemmer noqa: F401
- & gt; 4 from the preprocessing import (remove_stopwords strip_punctuation, strip_punctuation2, # noqa: F401
5 strip_tags strip_short, strip_numeric,
6 strip_non_alphanum, strip_multiple_whitespaces,

/usr/local/anaconda3/lib/python3.7/site - packages/gensim/parsing/preprocessing. Py in & lt; module>
40 import glob
41
- & gt; 42 the from gensim import utils
43 the from gensim. Parsing. Porter import PorterStemmer
44

/usr/local/anaconda3/lib/python3.7/site - packages/gensim/utils. Py in & lt; module>
43. When the from six moves the import range
44
- & gt; 45 the from smart_open import open
46
47 the from multiprocessing import cpu_count

/usr/local/anaconda3/lib/python3.7/site - packages/smart_open/set py in & lt; module>
26 the from smart_open import version
27
- & gt; 28 from smart_open_lib import open, parse_uri smart_open, register_compressor
29 from the s3 import iter_bucket as s3_iter_bucket
30

/usr/local/anaconda3/lib/python3.7/site - packages/smart_open/smart_open_lib py in & lt; module>
35
36 the from smart_open import compression will
- & gt; 37 the from smart_open import doctools
38 the from smart_open import transport
39 the from smart_open import utils

/usr/local/anaconda3/lib/python3.7/site - packages/smart_open/doctools py in & lt; module>
19
20 from the import compression will
- & gt; 21 from the import transport
22
23 PLACEHOLDER='smart_open/doctools. Py magic goes here'

/usr/local/anaconda3/lib/python3.7/site - packages/smart_open/transport. Py in & lt; module>
80
81 register_transport (smart_open local_file)
- & gt; 82 register_transport (' smart_open. GCS)
83 register_transport (' smart_open. HDFS)
84 register_transport (' smart_open. HTTP)

/usr/local/anaconda3/lib/python3.7/site - packages/smart_open/transport. Py in register_transport (submodule)
39 if isinstance (submodule, STR) :
40 try:
- & gt; 41 submodule=importlib. Import_module (submodule)
42 except ImportError:
43 return

/usr/local/anaconda3/lib/python3.7/importlib/set py in import_module (name, package)
125 break
126 level +=1
--> 127 return _bootstrap. _gcd_import (name [level:], package, level)
128
129

/usr/local/anaconda3/lib/python3.7/site - packages/smart_open/GCS. Py in & lt; module>
12 import logging
13
- & gt; 14 the import Google. Cloud. Exceptions
15 the import Google. Cloud. Storage
16 the import Google. The auth. Transport. Requests

/usr/local/anaconda3/lib/python3.7/site - packages/Google/cloud/exceptions. Py in & lt; module>
22 the from __future__ import absolute_import
23
- & gt; 24 the from Google. Api_core import exceptions
25
26 the try:

/usr/local/anaconda3/lib/python3.7/site - packages/Google/api_core/set py in & lt; module>
21
22
- & gt; 23 __version__=get_distribution (" Google - API - core "). The version

/usr/local/anaconda3/lib/python3.7/site - packages/pkg_resources/set py in get_distribution (dist)
480 dist=Requirement. The parse (dist)
481 if isinstance (dist, Requirement) :
--> 482 dist=get_provider (dist)
483 if not isinstance (dist, Distribution) :
484 raise TypeError (" Expected string, Requirement, or Distribution ", dist)

/usr/local/anaconda3/lib/python3.7/site - packages/pkg_resources/set py in get_provider (moduleOrReq)
356 ", "" Return an IResourceProvider for named module or the requirement" ""
357 if isinstance (moduleOrReq Requirement) :
--> 358 return working_set. Find (moduleOrReq) or require (STR) (moduleOrReq) [0]
359 try:
The module=360 sys. Modules [moduleOrReq]

/usr/local/anaconda3/lib/python3.7/site - packages/pkg_resources/set py in the require (self, * requirements)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull