jeudi 1 mai 2014

Trouble importing Matplotlib and other packages in Python 2.7.6 on Mavericks


Vote count:

0




I've just installed matplotlib with macports as suggested on SciPy's site.



sudo port install py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose


But Trying to import interactively in Python it does not go down well:



>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named matplotlib


Python Version:



Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54)


I've tried to Pythonpath suggestions, it doesn't seem to have any effect. This is the installation directory:



wired-XXX-XX-XXX-XXX:~ manfred$ whereis python
/usr/bin/python


Import math however works fine without problems...



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire