安装matplotlib包报错,如图
回答
收藏

安装matplotlib包报错,如图

l
liyibing
2025-09-03 13:30·浏览量:644
l
liyibing
发布于 2025-09-03 13:30644浏览

Looking in indexes: http://root:****@pypi.yingdao.com/root/pypi/+simple, https://pypi.tuna.tsinghua.edu.cn/simple, http://mirrors.aliyun.com/pypi/simple

Looking in links: c:\Users\jm018892\AppData\Local\ShadowBot\cache\packages, c:\Program Files (x86)\ShadowBot\shadowbot-5.30.32\python310\\Lib\\site-packages, c:\Program Files (x86)\ShadowBot\shadowbot-5.30.32\whls

Collecting matplotlib

Using cached http://mirrors.aliyun.com/pypi/packages/a0/59/c3e6453a9676ffba145309a73c462bb407f4400de7de3f2b41af70720a3c/matplotlib-3.10.6.tar.gz (34.8 MB)

Installing build dependencies: started

Running command pip subprocess to install build dependencies

Using pip 25.2 from C:\Users\jm018892\AppData\Local\ShadowBot\users\5a1d4eae-fb6e-4b20-9f6c-20b5c8704e73\apps\5ce9f065-c76f-4918-860e-59c2dcca7879\venv310\Lib\site-packages\pip (python 3.10)

Looking in indexes: http://root:****@pypi.yingdao.com/root/pypi/+simple, https://pypi.tuna.tsinghua.edu.cn/simple, http://mirrors.aliyun.com/pypi/simple

Looking in links: c:\Users\jm018892\AppData\Local\ShadowBot\cache\packages, c:\Program Files (x86)\ShadowBot\shadowbot-5.30.32\python310\\Lib\\site-packages, c:\Program Files (x86)\ShadowBot\shadowbot-5.30.32\whls

Collecting meson-python<0.17.0,>=0.13.1

Using cached http://mirrors.aliyun.com/pypi/packages/91/c0/104cb6244c83fe6bc3886f144cc433db0c0c78efac5dc00e409a5a08c87d/meson_python-0.16.0-py3-none-any.whl (26 kB)

Collecting pybind11!=2.13.3,>=2.13.2

Using cached http://mirrors.aliyun.com/pypi/packages/cd/8a/37362fc2b949d5f733a8b0f2ff51ba423914cabefe69f1d1b6aab710f5fe/pybind11-3.0.1-py3-none-any.whl (293 kB)

Collecting setuptools_scm>=7

Using cached http://mirrors.aliyun.com/pypi/packages/f7/14/dd3a6053325e882fe191fb4b42289bbdfabf5f44307c302903a8a3236a0a/setuptools_scm-9.2.0-py3-none-any.whl (62 kB)

Collecting meson>=0.63.3 (from meson-python<0.17.0,>=0.13.1)

Using cached http://mirrors.aliyun.com/pypi/packages/23/ed/a449e8fb5764a7f6df6e887a2d350001deca17efd6ecd5251d2fb6202009/meson-1.9.0-py3-none-any.whl (1.0 MB)

Collecting packaging>=19.0 (from meson-python<0.17.0,>=0.13.1)

Using cached http://mirrors.aliyun.com/pypi/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl (66 kB)

Collecting pyproject-metadata>=0.7.1 (from meson-python<0.17.0,>=0.13.1)

Using cached http://mirrors.aliyun.com/pypi/packages/7e/b1/8e63033b259e0a4e40dd1ec4a9fee17718016845048b43a36ec67d62e6fe/pyproject_metadata-0.9.1-py3-none-any.whl (18 kB)

Collecting tomli>=1.0.0 (from meson-python<0.17.0,>=0.13.1)

Using cached http://mirrors.aliyun.com/pypi/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl (14 kB)

Collecting setuptools (from setuptools_scm>=7)

Using cached http://mirrors.aliyun.com/pypi/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl (1.2 MB)

Installing collected packages: tomli, setuptools, pybind11, packaging, meson, setuptools_scm, pyproject-metadata, meson-python

Creating C:\Users\jm018892\AppData\Local\Temp\pip-build-env-fijkpjx2\overlay\Scripts

Successfully installed meson-1.9.0 meson-python-0.16.0 packaging-25.0 pybind11-3.0.1 pyproject-metadata-0.9.1 setuptools-80.9.0 setuptools_scm-9.2.0 tomli-2.2.1

Installing build dependencies: finished with status 'done'

Getting requirements to build wheel: started

Running command Getting requirements to build wheel

Getting requirements to build wheel: finished with status 'done'

Installing backend dependencies: started

Running command pip subprocess to install backend dependencies

Using pip 25.2 from C:\Users\jm018892\AppData\Local\ShadowBot\users\5a1d4eae-fb6e-4b20-9f6c-20b5c8704e73\apps\5ce9f065-c76f-4918-860e-59c2dcca7879\venv310\Lib\site-packages\pip (python 3.10)

Looking in indexes: http://root:****@pypi.yingdao.com/root/pypi/+simple, https://pypi.tuna.tsinghua.edu.cn/simple, http://mirrors.aliyun.com/pypi/simple

Looking in links: c:\Users\jm018892\AppData\Local\ShadowBot\cache\packages, c:\Program Files (x86)\ShadowBot\shadowbot-5.30.32\python310\\Lib\\site-packages, c:\Program Files (x86)\ShadowBot\shadowbot-5.30.32\whls

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x0481E3E8>, 'Connection to pypi.yingdao.com timed out. (connect timeout=15)')': /root/pypi/+simple/ninja/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x0481E580>, 'Connection to pypi.yingdao.com timed out. (connect timeout=15)')': /root/pypi/+simple/ninja/

Collecting ninja>=1.8.2

Using cached http://mirrors.aliyun.com/pypi/packages/95/97/51359c77527d45943fe7a94d00a3843b81162e6c4244b3579fe8fc54cb9c/ninja-1.13.0-py3-none-win32.whl (267 kB)

Installing collected packages: ninja

Successfully installed ninja-1.13.0

Installing backend dependencies: finished with status 'done'

Preparing metadata (pyproject.toml): started

Running command Preparing metadata (pyproject.toml)

+ meson setup C:\Users\jm018892\AppData\Local\Temp\pip-download-y9zqppog\matplotlib_ce1ce5d21a7443b1b685d174c1c83d99 C:\Users\jm018892\AppData\Local\Temp\pip-download-y9zqppog\matplotlib_ce1ce5d21a7443b1b685d174c1c83d99\.mesonpy-pmg_lesb -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\jm018892\AppData\Local\Temp\pip-download-y9zqppog\matplotlib_ce1ce5d21a7443b1b685d174c1c83d99\.mesonpy-pmg_lesb\meson-python-native-file.ini

The Meson build system

Version: 1.9.0

Source dir: C:\Users\jm018892\AppData\Local\Temp\pip-download-y9zqppog\matplotlib_ce1ce5d21a7443b1b685d174c1c83d99

Build dir: C:\Users\jm018892\AppData\Local\Temp\pip-download-y9zqppog\matplotlib_ce1ce5d21a7443b1b685d174c1c83d99\.mesonpy-pmg_lesb

Build type: native build

Program python found: YES 3.10.11 3.10.11

WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

Project name: matplotlib

Project version: 3.10.6

..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]

The following exception(s) were encountered:

Running `icl ""` gave "[WinError 2] ϵͳ�Ҳ���ָ�����ļ���"

Running `cl /?` gave "[WinError 2] ϵͳ�Ҳ���ָ�����ļ���"

Running `cc --version` gave "[WinError 2] ϵͳ�Ҳ���ָ�����ļ���"

Running `gcc --version` gave "[WinError 2] ϵͳ�Ҳ���ָ�����ļ���"

Running `clang --version` gave "[WinError 2] ϵͳ�Ҳ���ָ�����ļ���"

Running `clang-cl /?` gave "[WinError 2] ϵͳ�Ҳ���ָ�����ļ���"

Running `pgcc --version` gave "[WinError 2] ϵͳ�Ҳ���ָ�����ļ���"

A full log can be found at C:\Users\jm018892\AppData\Local\Temp\pip-download-y9zqppog\matplotlib_ce1ce5d21a7443b1b685d174c1c83d99\.mesonpy-pmg_lesb\meson-logs\meson-log.txt

error: subprocess-exited-with-error

Preparing metadata (pyproject.toml) did not run successfully.

exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

full command: 'C:\Users\jm018892\AppData\Local\ShadowBot\users\5a1d4eae-fb6e-4b20-9f6c-20b5c8704e73\apps\5ce9f065-c76f-4918-860e-59c2dcca7879\venv310\Scripts\python.exe' 'C:\Users\jm018892\AppData\Local\ShadowBot\users\5a1d4eae-fb6e-4b20-9f6c-20b5c8704e73\apps\5ce9f065-c76f-4918-860e-59c2dcca7879\venv310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\jm018892\AppData\Local\Temp\tmphr1g5nm0'

cwd: C:\Users\jm018892\AppData\Local\Temp\pip-download-y9zqppog\matplotlib_ce1ce5d21a7443b1b685d174c1c83d99

Preparing metadata (pyproject.toml): finished with status 'error'

error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

Looking in links: c:\Users\jm018892\AppData\Local\ShadowBot\cache\packages, c:\Program Files (x86)\ShadowBot\shadowbot-5.30.32\python310\\Lib\\site-packages, c:\Program Files (x86)\ShadowBot\shadowbot-5.30.32\whls

ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)

ERROR: No matching distribution found for matplotlib



收藏
全部回答1
最新
发布回答
回答