【发布时间】:2019-03-31 14:23:30
【问题描述】:
我有错误
No module named 'matplotlib'
我试过了:
sudo apt install python3.7 matplotlib
sudo apt install python3.7-matplotlib
pip install python3.7-matplotlib
结果:
No matching distribution found for python3.7-matplotlib
谢谢。
【问题讨论】:
-
matplotlib的推荐安装方式(前提是你已经安装了python 3.7)是
python -mpip install matplotlib。 -
命令“python setup.py egg_info”在/tmp/pip-install-X4eV03/matplotlib中失败,错误代码为1
-
安装工具可能已过时。先试试
python -mpip install --upgrade setuptools -
Could not install packages due to an EnvironmentError: [Errno 13] Operace zamítnuta: '/usr/local/lib/python2.7/dist-packages/easy_install.pyc' 考虑使用
--user选项或检查权限。为什么会有python2.7?我没有安装它。
标签: matplotlib python-3.7