python 2.7 pip install plt 报错,应该是 pip install matplotlib

---恢复内容开始---

解决和原因  应该安装  pip install matplotlib  而不是 pip install plt

之所以用 plt 只是因为导入别名 , import matplotlib.pyplot as plt

报错如下

pip install plt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting plt
ERROR: Could not find a version that satisfies the requirement plt (from versions: none)
ERROR: No matching distribution found for plt

python 2.7 pip install plt 报错,应该是 pip install matplotlib

---恢复内容结束---

猜你喜欢

转载自www.cnblogs.com/stillstep/p/10924721.html
今日推荐