Katrin
Katrin

Reputation: 13

Pylab after upgrading

Today I upgraded to Xubuntu 13.04 which comes with Python 3.3. Before that, I was working with Pyton 3.2, which was working perfectly fine. When running my script under Python 3.3, I get an

ImportError: No module named 'pylab'

in import pylab. Running in Python 3.2, which I reinstalled, throws

ImportError: cannot import name multiarray

in import numpy. Scipy, numpy and matplotlib are, recording to apt, on the newest version.

I don't have much knowledge about this stuff. Do you have any recommendations on how to get my script to work again, preferably on Python 3.2? Thanks in advance, Katrin

Edit:

We solved the problem: Apparently, there where a lot of fragments / pieces of the packages in different paths, as I installed from apt, pip as well as manually. After deleting all packages and installing them only via pip, everything works fine. Thank you very much for the help!

Upvotes: 1

Views: 319

Answers (2)

Lennart Regebro
Lennart Regebro

Reputation: 172229

You need to install all python libraries you installed for Python 3.2 also for 3.3.

Upvotes: 1

tacaswell
tacaswell

Reputation: 87376

I suspect you need to install python3-matplotlib, python3-numpy, etc. python-matlab is the python2 version.

Upvotes: 1

Related Questions