我正在尝试使用Pycharm将Matplotlib与Anaconda一起安装,它说没有模块,即使我刚刚安装了它,然后又卸载并重新安装了它。
我在终端机中输入了此
conda install matplotlib
然后测试实际上已经安装了它,然后将其放入终端,结果如下:
conda install matplotlib
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
然后我进入控制台输入:
import matplotlib.pyplot as plt
具有以下追溯:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1.1\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'matplotlib'
这对我来说毫无意义。尝试导入geojson
时也会发生这种情况。有人可以解释吗?