pytorch 使用conda和虚拟环境安装matplotlib时出现问题,ModuleNotFoundError

mrzz3bfm  于 2022-11-09  发布在  其他
关注(0)|答案(1)|浏览(256)

我尝试在我的环境“cs323V2“中使用以下命令安装matplotlib:

  1. (cs323V2) conda install matplotlib
  2. Collecting package metadata (current_repodata.json): done
  3. Solving environment: done
  4. # All requested packages already installed.
  5. Retrieving notices: ...working... done
  6. (cs323V2) python
  7. Python 2.7.5 (default, Nov 16 2020, 22:23:17)
  8. [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2
  9. Type "help", "copyright", "credits" or "license" for more information.
  10. [3]+ Stopped python
  11. >>> import matplotlib
  12. Traceback (most recent call last):
  13. File "<stdin>", line 1, in <module>
  14. ModuleNotFoundError: No module named 'matplotlib'
tjvv9vkg

tjvv9vkg1#

使用康达-福格频道。

  1. conda install -c conda-forge matplotlib

我也不知道为什么

  1. conda install matplotlib

不起作用。

相关问题