【发布时间】:2022-10-23 18:47:26
【问题描述】:
我尝试使用以下命令在我的环境“cs323V2”中安装 matplotlib:
(cs323V2) conda install matplotlib
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
Retrieving notices: ...working... done
(cs323V2) python
Python 2.7.5 (default, Nov 16 2020, 22:23:17)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[3]+ Stopped python
>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'matplotlib'
【问题讨论】:
-
您确定为您使用的 python 版本安装了 matplotlib 吗?看起来“(cs323V2)python”打开了python 2.7.5,这可能不是conda使用的python版本。
标签: python matplotlib pytorch environment