matplotlib错误:即使已安装,也没有名为matplotlib的模块

时间:2019-11-09 07:30:06

标签: python-3.x

安装后没有名为matplotlib的模块

我已经使用>> pip3 install matplotlib安装了matplotlib。由于我正在使用最新版本的python 3.8.0。 甚至将PIP更新到最新版本

选择导入matplotlib后,显示“没有名为matplotlib的模块”

当我尝试再次安装时收到消息

Requirement already satisfied: matplotlib in c:\program files (x86)\python38-32\lib\site-packages (3.2.0rc1)"

C:\Users\Username>py
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
>>> import matplotlib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'matplotlib'

C:\Users\Username>pip install matplotlib
Requirement already satisfied: matplotlib in c:\program files (x86)\python38-32\lib\site-packages (3.2.0rc1)

1 个答案:

答案 0 :(得分:0)

尝试pip3 install matplotlib以便将其安装在python3而不是python2上

更新:不确定如果这是Windows上的工作方式,那肯定是在Linux上。

相关问题