【问题标题】:How to install matplotlib in python3.7?python3.7如何安装matplotlib?
【发布时间】: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


【解决方案1】:
sudo pip3.7 install matplotlib

【讨论】:

  • - 将其保存在您的计算机上 get-pip.py - 导航到下载文件夹 - 运行 sudo python3.7 get-pip.py - 安装后请运行 pip3.7 命令
  • ModuleNotFoundError: No module named '_ctypes'
  • sudo apt-get install libffi-dev
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-03-10
  • 1970-01-01
  • 2019-09-09
  • 2012-01-26
  • 2018-11-12
  • 2019-01-14
  • 2019-02-08
相关资源
最近更新 更多