我尝试使用
pip install pandas
安装 pandas 以用于我的 python 代码,但在该过程安装必要的构建依赖项时我不断收到错误。我升级了 python 版本和 pip 但仍然没有任何结果。我什至尝试使用python -m pip install pandas
,仍然一样。错误如下所示:
Collecting pandas
Using cached pandas-2.2.2.tar.gz (4.4 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [74 lines of output]
Collecting meson-python==0.13.1
Using cached meson_python-0.13.1-py3-none-any.whl.metadata (4.1 kB)
Collecting meson==1.2.1
Using cached meson-1.2.1-py3-none-any.whl.metadata (1.7 kB)
Collecting wheel
Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Collecting Cython==3.0.5
Using cached Cython-3.0.5-py2.py3-none-any.whl.metadata (3.2 kB)
Collecting numpy>=2.0.0rc1
Using cached numpy-2.0.0rc1.tar.gz (18.3 MB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: still running...
Installing backend dependencies: still running...
Installing backend dependencies: finished with status 'error'
error: subprocess-exited-with-error
pip subprocess to install backend dependencies did not run successfully.
exit code: 1
[38 lines of output]
Collecting ninja>=1.8.2
Using cached ninja-1.11.1.1.tar.gz (132 kB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: still running...
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: ninja
Building wheel for ninja (pyproject.toml): started
Building wheel for ninja (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Building wheel for ninja (pyproject.toml) did not run successfully.
exit code: 1
[13 lines of output]
C:\Users\USER\AppData\Local\Temp\pip-build-env-7_t8ue7c\overlay\lib\python3.10\site-packages\setuptools_scm\git.py:308: UserWarning: git archive did not support describe output
warnings.warn("git archive did not support describe output")
C:\Users\USER\AppData\Local\Temp\pip-build-env-7_t8ue7c\overlay\lib\python3.10\site-packages\setuptools_scm\git.py:327: UserWarning: unprocessed git archival found (no export subst applied)
warnings.warn("unprocessed git archival found (no export subst applied)")
Traceback (most recent call last):
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-7_t8ue7c\overlay\lib\python3.10\site-packages\skbuild\setuptools_wrap.py", line 645, in setup
cmkr = cmaker.CMaker(cmake_executable)
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-7_t8ue7c\overlay\lib\python3.10\site-packages\skbuild\cmaker.py", line 148, in __init__
self.cmake_version = get_cmake_version(self.cmake_executable)
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-7_t8ue7c\overlay\lib\python3.10\site-packages\skbuild\cmaker.py", line 105, in get_cmake_version
raise SKBuildError(msg) from err
Problem with the CMake installation, aborting build. CMake executable is cmake
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ninja
Failed to build ninja
ERROR: Could not build wheels for ninja, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
pip subprocess to install backend dependencies 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.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
我该怎么做才能从命令行成功安装它?
在我的 Instagram 上发送“I am A Bumblebig” Instagram = kapil_lokhande123 我一定会尽力调查你的问题并给你最好的结果。 如果您没有 Instagram,请 Whatsapp 我 7030065664 否