如何更改Python Windows的版本将用于我的代码并安装numpy?

问题描述 投票:0回答:1
当我尝试

PIP安装numpy时,它会输出一个错误:

Build type: native build Project name: NumPy Project version: 2.2.2 C compiler for the host machine: cc (gcc 13.2.0 "cc (Rev3, Built by MSYS2 project) 13.2.0") C linker for the host machine: cc ld.bfd 2.41 C++ compiler for the host machine: c++ (gcc 13.2.0 "c++ (Rev3, Built by MSYS2 project) 13.2.0") C++ linker for the host machine: c++ ld.bfd 2.41 Cython compiler for the host machine: cython (cython 3.0.11) Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python found: YES (C:\msys64\ucrt64\bin\python.exe) Found pkg-config: YES (C:\msys64\ucrt64\bin\pkg-config.EXE) 2.1.0 Run-time dependency python found: YES 3.11 Has header "Python.h" with dependency python-3.11: NO
最后两行是引起我注意的原因。我想使用Python 3.13,因为我认为它将带有此标头(Python.h)并解决该问题。

i我尝试从Microsoft Store中从官方网站上安装Python 3.13,并将文件添加到顶部的路径,但没有用。当我在CMD中键入

Python -version

时,它将输出3.11.7。对于Python3-version。我确定我正确地将文件添加到路径中。我该如何解决?

python numpy
1个回答
0
投票

Https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52A95608C49671267E40C689E0BC00CA/CONDA-CONDA-CONDA-CONDA-CHEATSEET.pdf

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.