Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 通过pip在Windows上安装matplotlib会导致错误_Python_Windows_Pip - Fatal编程技术网

Python 通过pip在Windows上安装matplotlib会导致错误

Python 通过pip在Windows上安装matplotlib会导致错误,python,windows,pip,Python,Windows,Pip,我试着通过pip安装各种库,除了matplotlib之外,它们都成功了。 我使用Windows 10,我安装了C++ 14。 完整错误输出: 错误摘录: Collecting matplotlib Using cached matplotlib-3.3.2.tar.gz (37.9 MB) Requirement already satisfied: certifi>=2020.06.20 in c:\users\pwegner\pycharmprojects\pythonprojec

我试着通过pip安装各种库,除了matplotlib之外,它们都成功了。 我使用Windows 10,我安装了C++ 14。 完整错误输出:

错误摘录:

Collecting matplotlib
  Using cached matplotlib-3.3.2.tar.gz (37.9 MB)
Requirement already satisfied: certifi>=2020.06.20 in c:\users\pwegner\pycharmprojects\pythonproject\venv\lib\site-packages (from matplotlib) (2020.6.20)
Requirement already satisfied: cycler>=0.10 in c:\users\pwegner\pycharmprojects\pythonproject\venv\lib\site-packages (from matplotlib) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\pwegner\pycharmprojects\pythonproject\venv\lib\site-packages (from matplotlib) (1.3.1)
Requirement already satisfied: numpy>=1.15 in c:\users\pwegner\pycharmprojects\pythonproject\venv\lib\site-packages (from matplotlib) (1.19.4)
Requirement already satisfied: pillow>=6.2.0 in c:\users\pwegner\pycharmprojects\pythonproject\venv\lib\site-packages (from matplotlib) (8.0.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\users\pwegner\pycharmprojects\pythonproject\venv\lib\site-packages (from matplotlib) (2.4.7)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\pwegner\pycharmprojects\pythonproject\venv\lib\site-packages (from matplotlib) (2.8.1)
Requirement already satisfied: six in c:\users\pwegner\pycharmprojects\pythonproject\venv\lib\site-packages (from cycler>=0.10->matplotlib) (1.15.0)
Using legacy 'setup.py install' for matplotlib, since package 'wheel' is not installed.
Installing collected packages: matplotlib
    Running setup.py install for matplotlib: started
    Running setup.py install for matplotlib: finished with status 'error'


ERROR: Command errored out with exit status 1: 'C:\Users\pwegner\PycharmProjects\pythonProject\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pwegner\\AppData\\Local\\Temp\\pycharm-packaging\\matplotlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\pwegner\\AppData\\Local\\Temp\\pycharm-packaging\\matplotlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\pwegner\AppData\Local\Temp\pip-record-h8c_iaw3\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\pwegner\PycharmProjects\pythonProject\venv\include\site\python3.9\matplotlib' Check the logs for full command output.

我不太明白我在这里要做什么。
关于如何完成安装有什么想法吗?

您是否使用了
pip install matplotlib
?版本:python,pip?有重要的过时模块吗<代码>(pip列表-o)。请从错误输出中发布更多信息,这里有一个弃用警告,如果相关的话,请使用IDK。问题不在于matplotlib,而在于wheel。知道如何排除wheel故障吗?我觉得我已经安装了我需要的所有东西