简体   繁体   English

Matplotlib 未在 PyCharm 中安装且没有错误

[英]Matplotlib not installing in PyCharm with no error

Image of the console控制台图片

I'm setting up my virtual environment and need the Matplotlib library.我正在设置我的虚拟环境并需要 Matplotlib 库。 But when i try installing it using pip install matplotlib(or through the PyCharm IDE or by downloading the latest matplotlib.whl file) it says 'processing matplotlib.....' and exits the installation.但是当我尝试使用 pip install matplotlib(或通过 PyCharm IDE 或通过下载最新的 matplotlib.whl 文件)安装它时,它说“正在处理 matplotlib.....”并退出安装。 I have been struggling with it since few months.几个月以来,我一直在为此而苦苦挣扎。 And even tried with different laptops.甚至尝试使用不同的笔记本电脑。 Same problem.同样的问题。

PyCharm 2019.1.3 (Community Edition) Build #PC-191.7479.30, built on May 29, 2019 Windows 10 10.0 PyCharm 2019.1.3(社区版)Build #PC-191.7479.30,构建于2019年5月29日Windows 10 10.0

Python 3.7蟒蛇 3.7

Thanks.谢谢。

在PyCharm上安装matplotlib或者其他lib可以到这个路径,首先到这个路径file->settings->project interpreter-> find matplotlib然后选择project interpreter和安装包成功。

You may try the following steps:您可以尝试以下步骤:

  1. Restore to default settings (optional)恢复默认设置(可选)

    To restore the PyCharm default settings, you can remove the configuration directory idea.config.path when the IDE is not running.要恢复 PyCharm 默认设置,可以在 IDE 未运行时删除配置目录 idea.config.path。 The directory is located in: SYSTEM DRIVE\\Users\\USER ACCOUNT NAME\\.PRODUCT VERSION该目录位于: SYSTEM DRIVE\\Users\\USER ACCOUNT NAME\\.PRODUCT VERSION

  2. Then run this command in command prompt然后在命令提示符下运行此命令

    C:\\Windows\\System32>pip install matplotlib

    (considering default directory) I think this will install matplotlib SUCCESSFULLY! (考虑默认目录)我认为这将成功安装 matplotlib!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM