2016-02-17 58 views
-1

我想使用matplotlib。我已经安装了它:为什么matplotlib没有运行?

sudo apt-get install python-matplotlib 

和终端,我有:

$ python 
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import matplotlib 
>>> matplotlib.__version__ 
'1.3.1' 
>>> matplotlib.__file__ 
'/usr/lib/pymodules/python2.7/matplotlib/__init__.pyc' 
>>> mpl.get_configdir() 
'/home/azh2/.config/matplotlib' 
>>>> mpl.get_cachedir() 
'/home/azh2/.cache/matplotlib' 

现在我想使用它。所以在pycharm终端我有:

$ from PIL import Image 
from: can't read /var/mail/PIL 

请问有什么问题?你能帮我解决吗? 非常感谢您的帮助。

+0

是什么让你觉得这是matplotlib相关? – Christoph

回答

3

你在shell不在python执行环境。

相关问题