Python 这些numpy错误日志的含义是什么?
我使用的是Python3.9,我刚刚使用pip安装了numpy版本1.19.4。但是,我收到了以下错误消息:Python 这些numpy错误日志的含义是什么?,python,numpy,directory,pip,Python,Numpy,Directory,Pip,我使用的是Python3.9,我刚刚使用pip安装了numpy版本1.19.4。但是,我收到了以下错误消息: WARNING: The script f2py.exe is installed in 'c:\users\paul\appdata\local\programs\python\python39\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to supp
WARNING: The script f2py.exe is installed in
'c:\users\paul\appdata\local\programs\python\python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-
script-location.
Successfully installed numpy-1.19.4
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the
'c:\users\paul\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip'
command.
我发现了一些关于第一条错误消息的其他问题。但是我找不到任何办法来解决我的问题。例如,我尝试了这个问题的最佳答案:
但它不起作用,因为它没有显示他在解决方案中使用的两行代码。
有人能帮我吗?我在这里迷路了
编辑:我尝试了MikeH给出的解决方案。但在那之后,它仍然不起作用。我在安装numpy时收到相同的警告,并且在尝试将其导入python时收到以下错误消息:
>>> import numpy
** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Paul\AppData\Local\Programs\Python\Python39\lib\site-
packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "C:\Users\Paul\AppData\Local\Programs\Python\Python39\lib\site-
packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation
('C:\\Users\\Paul\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-
packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug
in the windows runtime. See this issue for more information:
https://developercommunity.visualstudio.com/content/problem/1207405/fmod-
after-an-update-to-windows-2004-is-causing-a.html
导入numpy
**输入DGEBAL时,参数3的值非法
**输入DGEHRD时,参数2的值非法
**输入DORGHR时,DORGQR参数2的值非法
**输入DHSEQR时,参数编号4的值非法
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\Paul\AppData\Local\Programs\Python\Python39\lib\site-
packages\numpy\\uuuuuu init\uuuuuuuuuuuuuuuuuu.py”,第305行,在
_赢取支票
文件“C:\Users\Paul\AppData\Local\Programs\Python\Python39\lib\site-
packages\numpy\\uuuuuu init\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
从“无”引发运行时错误(msg.format(_文件__))的错误
RuntimeError:当前的Numpy安装
('C:\\Users\\Paul\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-
由于错误,包\\numpy\\\\uuuuu init\uuuuu.py')无法通过健全性检查
在windows运行时中。有关更多信息,请参阅本期:
https://developercommunity.visualstudio.com/content/problem/1207405/fmod-
after-an-update-to-windows-2004-is-causing-a.html
这是系统变量中路径的图片:较低的警告表示pip已过时。这并没有很大的影响,但是您可以考虑运行如下,正如ErICL已经指出的:
py -m pip install --upgrade pip
现在来看第一个错误。安装Python包的文件夹不包括在Windows环境变量中。要解决此问题,请按Windows键并搜索“编辑系统环境变量”。然后点击“环境变量”。在底部可以找到系统变量,其中有一个叫做“路径”。按时钟,然后按“编辑”。然后单击“新建”并粘贴所述错误的路径。(c:\users\paul\appdata\local\programs\python\python39\Scripts)
对于屏幕截图,请检查以下内容:这将确保可以在任何地方找到软件包。这些都不是错误,它们只是警告;除非numpy不起作用,否则没有明确的需要修复这些问题,是吗?不幸的是,当我尝试在python中导入它时,numpy不起作用。有帮助吗?您好。我很抱歉说谢谢,但是:非常感谢。我就是想不出来。问题是我确实在使用Numpy1.19.4和Python3.9,这显然不起作用。。非常感谢。我在这件事上纠缠了好几个小时,我已经照你说的做了,但似乎仍然不起作用。我将其添加到系统变量中。之后,我重新安装了numpy,但它在安装时仍然给我相同的错误消息。另外,当我尝试在python中导入它时,会收到另一条错误消息。我编辑了我的帖子,所以你可以看到它。