Installed gensim but not able to import in spyder,editor

1,232 views
Skip to first unread message

Tejavath Srinivas Nayak

unread,
May 26, 2016, 3:18:54 AM5/26/16
to gensim
I've installed gensim from "easy_install --upgrade gensim"..It's showing successfully installed in cmd but when I'm trying to import in spyder editor,there is a error that "no module named gensim"..please help me

Lev Konstantinovskiy

unread,
May 26, 2016, 10:51:08 AM5/26/16
to gensim
Hi Tejavan,

It sounds like you are having an issue with Spyder rather than gensim. Maybe Spyder mailing list will be a better place to ask?

Regards
Lev

Bruna Thalenberg

unread,
May 29, 2016, 2:23:09 PM5/29/16
to gensim
I'm having the same issue, but not only with spyder: I'm not able to import even when I'm running python from the terminal, although it's correctly installed, so I'm guessing it's not a problem with spyder. I've also tried using shell and ipython.

I've already checked file permissions and tried reinstalling with pip and easy_install.

Python versions 2.7.11 and 3.4.3 (tried both) in Linux Mint 17.3.

--Bruna

Lev Konstantinovskiy

unread,
May 30, 2016, 9:25:27 PM5/30/16
to gensim
Hi Bruna, 
are you using a virtual environment? Does gensim appear in the output of 'pip freeze'?

Would be good to know more about this issue,
Lev

Bruna Thalenberg

unread,
May 30, 2016, 10:07:27 PM5/30/16
to gen...@googlegroups.com
Hi, Lev,

yes, it does:

bthalenberg@bthalenberg-K46CA ~ $ pip freeze
BeautifulSoup==3.2.1
Cython==0.24
Jinja2==2.7.2
Mako==0.9.1
MarkupSafe==0.18
PAM==0.4.2
Pillow==2.3.0
PyYAML==3.10
Pygments==1.6
Sphinx==1.2.2
Theano==0.8.2
Twisted-Core==13.2.0
Twisted-Names==13.2.0
Twisted-Web==13.2.0
apt-xapian-index==0.45
apturl==0.4.1ubuntu4
argparse==1.2.1
astroid==1.0.1
boto==2.40.0
bz2file==0.98
ccsm==0.9.11.3
chardet==2.0.1
colorama==0.2.5
command-not-found==0.3
compizconfig-python==0.9.11.3
configglue==1.1.2
configobj==4.7.2
debtagshw==0.1
decorator==3.4.0
defer==1.0.6
dirspec==13.10
dnspython==1.11.1
docutils==0.11
duplicity==0.6.23
feedparser==5.1.3
gensim==0.12.4
html5lib==0.999
httplib2==0.8
httpretty==0.8.10
ipython==1.2.1
lockfile==0.8
logilab-common==0.61.0
lxml==3.3.3
matplotlib==1.3.1
mercurial==2.8.2
nltk==2.0b9
numpy==1.8.2
oauthlib==0.6.1
oneconf==0.3.7.14.04.1
paramiko==1.10.1
pep8==1.4.6
pexpect==3.1
piston-mini-client==0.7.5
protobuf==2.5.0
psutil==1.2.1
pyOpenSSL==0.13
pycrypto==2.6.1
pycups==1.9.66
pycurl==7.19.3
pyflakes==0.8.1
pygobject==3.12.0
pyinotify==0.9.4
pylint==1.1.0
pyparsing==2.0.1
pyserial==2.6
pysmbc==1.0.14.1
python-apt==0.9.3.5ubuntu2
python-dateutil==1.5
python-debian==0.1.21-nmu2ubuntu2
python-xlib==0.14
pytz==2012c
pyxdg==0.25
pyzmq==14.0.1
reportlab==3.0
requests==2.2.1
roman==2.0.0
rope==0.9.2
scipy==0.13.3
sessioninstaller==0.0.0
simplegeneric==0.8.1
six==1.5.2
smart-open==1.3.3
spyder==2.2.5
system-service==0.1.6
uTidylib==0.2
urllib3==1.7.1
wheel==0.24.0
wsgiref==0.1.2
zope.interface==4.0.5

This is the output when I try to import gensim:

bthalenberg@bthalenberg-K46CA ~ $ python
Python 2.7.11 (default, Mar  2 2016, 16:20:34) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gensim
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gensim
>>> from gensim import corpora
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gensim
>>> exit()

bthalenberg@bthalenberg-K46CA ~ $ python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gensim
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'gensim'
>>> 

I'm not on a virtual environment, here are my system specs:

Linux bthalenberg-K46CA 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Mint 17.3 on a MATE 1.12.0 interface.

As for hardware, I have 4 Intel Core i7-3517U CPUs @ 1.90GHz each, resulting in 5,7Gb.

All files are properly located in python's distribution packages folder so I really have no idea of what's going on. Let me know if you need any more information. I'm on a dual boot machine so probably for now I'll just switch to Windows to use gensim. 
      
Regards,
Bruna

--
You received this message because you are subscribed to a topic in the Google Groups "gensim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gensim/3-wlZ2YYIzM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gensim+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages