In the terminal, after I enter the python interpreter I use help('modules')
to see which modules are installed but Numpy, matplotlib and scipy are not listed.
When I try to import them, I get the following:
ImportError: no module named xxx.
However, when I try to install these modules using apt-get install xxx
I get a message saying:
python-xxx is already the newest version.
Is it possible I somehow have two versions of python one with matplotlib, the other without it? Could this be linked to a separate problem I'm having with Spyder where the interpreter no longer works? See here.
I am using python 2.7. When I run which python I get: /usr/local/bin/python
.
When I run /usr/bin/local/python
I get:
Python 2.7.9 (default, Mar 18 2016, 20:34:01)
[GCC 4.8.4] on linux2
When I run dpkg -l spyder
I get:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig- aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============- =================================
ii spyder 2.3.0+dfsg-4 all python IDE for scientists (Python