当我想在IDLE中导入matplotlib时。出现以下错误:ImportError:IDLE中没有名为matplotlib的模块
ImportError: No module named matplotlib
我使用的是Mac,蟒蛇在我的.bash_profile的路径是:
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
天前,我想从我的Mac计算机上卸载蟒蛇,所以我不知道如果我只是损坏了内置的python。
我该如何解决这个问题?
你安装matplotlib? –
我使用sudo easy_install matplotlib来安装它。而在使用python a.py的shell中,它工作正常。但在IDLE中仍然找不到模块。 –