我對 Python 完全陌生,剛剛安裝了 Python(版本 3.9.0),因為我想安裝 ASReview。當我嘗試在 CMD.exe 中使用以下命令安裝程序時(當?shù)谝粋€命令返回錯誤時,我根據(jù) ASReview 的故障排除頁面嘗試了第二個命令):pip install asreviewpython -m pip install asreview同樣的錯誤不斷發(fā)生:ERROR: Command errored out with exit status 1: command: 'C:\Users\marloes\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\marloes\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\marloes\AppData\Local\Temp\tmpiskpvvkf' cwd: C:\Users\marloes\AppData\Local\Temp\pip-install-5m2g9jva\numpyComplete 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.inProcessing numpy/random\bit_generator.pyxProcessing numpy/random\mtrand.pyxProcessing numpy/random\_bounded_integers.pyx.inProcessing numpy/random\_common.pyxProcessing numpy/random\_generator.pyxProcessing numpy/random\_mt19937.pyxProcessing numpy/random\_pcg64.pyxProcessing numpy/random\_philox.pyxProcessing numpy/random\_sfc64.pyxCythonizing sourcesblas_opt_info:blas_mkl_info:No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutilscustomize MSVCCompiler libraries mkl_rt not found in ['C:\\Users\\marloes\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\marloes\\AppData\\Local\\Programs\\Python\\Python39\\libs'] NOT AVAILABLE(還有更多)為了響應命令提示符提供的建議,我已經(jīng)更新到 pip 20.2.4。我該如何解決這個錯誤?代為致謝!
1 回答

暮色呼如
TA貢獻1853條經(jīng)驗 獲得超9個贊
Python 3.9.0 沒有 numpy 的wheel。如果沒有理由需要 3.9.0,我會完全刪除 python 并安裝受支持的版本,如 3.7(或 3.8)。
如果你想堅持使用 python 3.9 那么我建議一個解決方法是安裝 pipwin。pipwin 是 Windows 上 pip 的補充工具。pipwin 在此處安裝 Christoph Gohlke 提供的適用于 Windows 的非官方 python 軟件包二進制文件http://www.lfd.uci.edu/~gohlke/pythonlibs/
pip install pipwin
然后安裝numpy
pipwin install numpy
添加回答
舉報
0/150
提交
取消