我正在尝试安装pyplot
如下:
x@y:~$ sudo -H pip3 install pyplot
Collecting pyplot
Could not find a version that satisfies the requirement pyplot (from versions: )
No matching distribution found for pyplot
我究竟做错了什么?
我的平台不满足哪些条件?
我正在使用 Ubuntu 16.04 LTS(64 位)。
为了提供更多的上下文,这里是我的一些包版本:
x@y:~$ pip3 show pip
Name: pip
Version: 9.0.1
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: [email protected]
License: MIT
Location: /home/sebastian/.local/lib/python3.5/site-packages
Requires:
x@y:~$ pip3 show matplotlib
Name: matplotlib
Version: 2.1.2
Summary: Python plotting package
Home-page: http://matplotlib.org
Author: John D. Hunter, Michael Droettboom
Author-email: [email protected]
License: BSD
Location: /usr/local/lib/python3.5/dist-packages
Requires: six, pyparsing, numpy, python-dateutil, pytz, cycler
pyplot
是 a 的一部分matplotlib
。为了安装
pyplot
,您应该安装matplotlib
matplotlib
安装说明