numpy 我不能安装任何库,它给我一个错误说subprocess-exit-with-error

wkftcu5l  于 2023-11-18  发布在  其他
关注(0)|答案(1)|浏览(173)
PS D:\Learning\py\python basics\> pip install numpy  
Collecting numpy
Downloading numpy-1.26.0.tar.gz (15.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.6/15.6 MB 2.4 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
Collecting ninja>=1.8.2
Downloading ninja-1.11.1.1.tar.gz (132 kB)
-------------------------------------- 132.4/132.4 kB 1.1 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
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\Abaan\AppData\Local\Temp\pip-build-env-nxqms1f9\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\Abaan\AppData\Local\Temp\pip-build-env-nxqms1f9\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\Abaan\AppData\Local\Temp\pip-build-env-nxqms1f9\overlay\lib\python3.10\site-packages\skbuild\setuptools_wrap.py", line 645, in setup
            cmkr = cmaker.CMaker(cmake_executable)
          File "C:\Users\Abaan\AppData\Local\Temp\pip-build-env-nxqms1f9\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\Abaan\AppData\Local\Temp\pip-build-env-nxqms1f9\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.

字符串
我试图升级pip,setuptools,但它仍然给出错误它不允许我做安装任何库,并给我同样的错误
我也检查了系统的环境变量,但一切似乎都正常。我甚至尝试以管理员身份运行安装,但问题仍然存在。在线研究后,一些用户建议检查系统的PATH变量,这并没有产生任何结论性的结果。我已经验证了我的互联网连接是稳定的,并没有在安装过程中造成任何中断。我试图在新的虚拟环境中安装软件包,但出现了相同的错误。该错误似乎与CMake安装有关,但我的CMake可执行文件已正确配置。最近没有任何系统更新或更改可能触发此问题。我正在考虑联系软件包维护人员以获得进一步帮助。
我的Pip版本:23.2.1我的Python版本:3.10.12

yqlxgs2m

yqlxgs2m1#

尝试安装完整的python版本

$ sudo apt install python3-full

字符串

相关问题