Python 无法安装numpy

Python 无法安装numpy,python,numpy,Python,Numpy,我是Python新手。我正在尝试安装numpy,但每次都出现此错误 C:\Users\Tech Land>pip3 install numpy Collecting numpy Using cached numpy-1.19.2.zip (7.3 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata

我是Python新手。我正在尝试安装numpy,但每次都出现此错误

C:\Users\Tech Land>pip3 install numpy
Collecting numpy
  Using cached numpy-1.19.2.zip (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\tech land\appdata\local\programs\python\python39\python.exe' 'c:\users\tech land\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\TECHLA~1\AppData\Local\Temp\tmpkjezpsa7'
         cwd: C:\Users\Tech Land\AppData\Local\Temp\pip-install-zjon8mw3\numpy
    Complete output (200 lines):
    Running from numpy source directory.
    setup.py:470: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      run_build = parse_setuppy_commands()
    Processing numpy/random\_bounded_integers.pxd.in
    Processing numpy/random\bit_generator.pyx
    Processing numpy/random\mtrand.pyx
    Processing numpy/random\_bounded_integers.pyx.in
    Processing numpy/random\_common.pyx
    Processing numpy/random\_generator.pyx
    Processing numpy/random\_mt19937.pyx
    Processing numpy/random\_pcg64.pyx
    Processing numpy/random\_philox.pyx
    Processing numpy/random\_sfc64.pyx
    Cythonizing sources
    blas_opt_info:
    blas_mkl_info:
    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
    customize MSVCCompiler
      libraries mkl_rt not found in ['c:\\users\\tech land\\appdata\\local\\programs\\python\\python39\\lib', 'C:\\', 'c:\\users\\tech land\\appdata\\local\\programs\\python\\python39\\libs']
      NOT AVAILABLE
有人能告诉我问题出在哪里吗?我正在使用Python 3.9.0

pip3 install wheel

您能在执行此命令后重新安装它吗?

在windows上安装有时会很棘手。错误表示在numpy.distutils中找不到'numpy.distutils.\u msvccompiler',并且在声明的路径中也找不到mkl\u rt liabrary。 您可以分别下载和安装它们,然后再次尝试安装numpy。
通常,32位和64位系统有不同的文件,所以选择一个适合您的文件。

我听说,numpy还不能用于Python 3.9,因此pip希望构建它,而不仅仅是安装预编译的二进制代码


您可能想检查numpy是否已经为3.9预构建,如果没有,请切换到Python 3.8。

我给了pip3安装numpy。wheel是指?wheel是一种软件包格式。首先尝试安装控制盘,然后尝试安装numpy。如果这不能解决您的问题,请告诉我。我安装了wheel。但在安装后,当我尝试安装两个install numpy时,我遇到了相同的错误。请转到此页面并下载与您的系统兼容的python解释器,如果您的系统是64位的,请下载x86-64,我下载了python 3.8.6,现在我可以安装numpy了。谢谢