I am using Python 3.9 and I just installed numpy version 1.19.4 using pip. However I got the following error messages:
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.
I have found some other questions regarding the first error message. But I can't find any way to solve my problem. For example I tried the top answer on this question: PIP 10.0.1 - Warning "Consider adding this directory to PATH or..." But it didn't work since it didn't show me the 2 lines he used in his solution. Can anyone please help me? I'm lost here.
Edit: I tried the solution given by MikeH. But after that it still doesn't work. I get the same warning when installing numpy and i get the following error messages when I try to import it in 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
This is a picture of the path in system variables: https://i.stack.imgur.com/qC9Uh.jpg