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



安装后没有名为matplotlib的模块

我已经使用>>pip3安装了matplotlib。因为我使用的是python 3.8.0的最新版本。甚至将PIP更新为最新版本

选择导入matplotlib后,它会显示"没有名为matplotllib的模块">

而如果我尝试再次安装收到消息

Requirement already satisfied: matplotlib in c:program files (x86)python38-32libsite-packages (3.2.0rc1)"
C:UsersUsername>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:UsersUsername>pip install matplotlib
Requirement already satisfied: matplotlib in c:program files (x86)python38-32libsite-packages (3.2.0rc1)

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

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

最新更新