-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named gensim.models #23
Comments
|
I have the same problem when trying to import Word2Vec |
if you are using Jupyter notebook then you can try conda install gensim, that worked for me. Try using pip3 install gensim that works too |
sudo pip3 install -U gensim |
One thing to note is this: if you run |
getting same error in windows also , conda install gensim is not working bro! |
Yes its not :( |
Try writing conda install -c anaconda gensim in the command prompt and then continue in the jupyter notebook. |
It is 2019. I am facing the same issue. |
I'm having the issue right now. I installed gensim in my conda env in 3 different ways, including using SUMMARY:
DETAILS: INSTALL GENSIM IN SARC env
conda list shows that gensim is installed:
But when I try to import gensim in a jupyter notebook in the evironment I get a
I then tried This replaced the gensim 3.4 installed by
But still I get the error when I try to import |
Have gone through similar steps like @karlwbaker but still no luck. :( |
|
I solved the problem I was having (above). Gensim was fine. The problem was that I didn't have jupyter installed in the Anaconda env so it was using the version from the base install, which was for a later version of python. Installing jupyter in the env with gensim solved the problem. Added note: |
It is 2020. I tried all solutions above but still :( |
I also face the same issue. |
it is 2021 and still the same issue |
It will be 2030, and same issue. Edit, 20 min later:
That worked for me. Good luck. |
"conda install -c conda-forge gensim" has solved my issue when I am trying to import word2vec |
🤣🤣 |
Still facing same issue, using pipenv virtual environment with python3.7.x tried gensim 4.x and 3.x non worked, same error message |
I have installed gensim with the command: conda install -c conda-forge gensim But I am getting the error while importing the library gensim.viz The exact error is: |
That may be due to version error |
when I try to run train.py, the error occurs:
ljy@ubuntu:~/debug_seq2seq$ python bin/train.py
Traceback (most recent call last):
File "bin/train.py", line 9, in
from lib.w2v_model import w2v
File "/home/ljy/debug_seq2seq/lib/w2v_model/w2v.py", line 4, in
from gensim.models import Word2Vec
ImportError: No module named gensim.models
But I has just install gensim by using
sudo easy_install -U gensim
Anyone could help me ?
The text was updated successfully, but these errors were encountered: