我这里遇到了版本问题。有人能指导我如何解决吗?
error:
Collecting pyplot
Could not find a version that satisfies the requirement pyplot (from versions: )
No matching distribution found for pyplot
You are using pip version 18.1, however version 19.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
答案1
pyplot
在下面matplotlib
,尝试一下pip install matplotlib
。
这是一个如何使用它的简单示例:
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()