当我在pycharm中运行python3.7时(matplotlib错误)
import matplotlib.pyplot as plt
然后我得到了
Traceback (most recent call last):
File "D:/PyCharm 2017.2.3/Workplace/SimpleGA-master/ga.py", line 3, in
<module>
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
我尝试在https://pypi.python.org/pypi/matplotlib中找到matplotlib,但找不到python3.7包
答案 0 :(得分:0)
确保已安装matplotlib模块。 + pip install matplotlib
然后再试一次。
谢谢!