我尝试在命令行中使用
pip install numpy
和科曼德一起
pip3 install numpy
它们都输出了相同的长错误消息,跨越了很多行,而我似乎无法在其他任何地方找到解决方案。也是的,我运行了pip show numpy,它输出没有找到模块
我无法显示整个错误消息,或者堆栈溢出将不允许发送它,但这里有一些错误消息
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Logan\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\Logan\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Logan\AppData\Local\Temp\tmpt96cv69x'
cwd: C:\Users\Logan\AppData\Local\Temp\pycharm-packaging\numpy
几项更新: 首先,我使用的是python版本3.9.0
其次,我不能添加整个错误消息,因为堆栈溢出将不允许发布问题,但是我可以显示一些错误消息,我觉得这些消息对这个问题很重要
第三,如果没有办法纠正这个问题,有人能告诉我是否可以在不使用cmd提示符的情况下手动安装python模块
最后,似乎只有numpy受到了影响,因为我仍然能够毫无问题地安装其他python模块。由于某些原因,在控制盘元数据部分,它给出了错误
下面是更多的错误消息
ERROR: Command errored out with exit status 1: 'c:\users\logan\appdata\local\programs\python\python39\python.exe' 'c:\users\logan\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Logan\AppData\Local\Temp\tmpwyokpy44' Check the logs for full command output.
我认为这是python3.9的问题,NumPy还没有为python3.9版本准备好二进制轮子
查看2020年9月14日numpy网站上的注释here
在解决此问题之前,建议先降级到3.8
相关问题 更多 >
编程相关推荐