代码行:
import matplotlib错误:
ImportError:没有名为“matplotlib”的模块
问题:
which python3.4 % /usr/bin/python3.4在哪里安装matplotlib?
sudo find /usr | grep matplotlib % /usr/lib/pymodules/python2.7/matplotlib/...一些注意事项:
解决方案:
import sys sys.path.append('/usr/lib/pymodules/python2.7/') (不满意这个)。pip3 install matplotlib或sudo pip3 install matplotlib (接收错误,我也不喜欢这个错误)。sudo apt-get install python-matplotlib (可能是完美的,但在python2.7目录中安装matplotlib )。如何使matplotlib为python3工作?谢谢
发布于 2015-09-24 21:55:06
就在我正要让问题意识到不是打字
sudo apt-get install python-matplotlibI需要键入
sudo apt-get install python3-matplotlibhttps://stackoverflow.com/questions/32771559
复制相似问题