I was suspecting that, i thought maybe it was a font issue. when i check for “/lib” nothing exists.
How can i permanently add ‘/Lib/site-packages’ tot eh PATH
All your other folders in the path are subdirectories of lib, not Lib. “How did the libraries land in C:\Python\Demcon2021\Lib\site-packages?” is a question you should first answer. Otherwise you may land into trouble for libraries that are in the subdirectory of lib.
I changed the folder name LIB to lib and realised in the ide i was using, Spyder, i had a different python interpreter than the one i downloaded. So i changed the python interpreter to the one with tensorflow, keras… and now it works problem free.
I realised it when you mentioned there can be another numpy.
To summarise for someone else that may have the same problem. I was getting the error message i explained above in the beginning. I thought problem was not having the correct directory on the python PATH. I realised in the IDE i was using the python interpreter was set to the one that came with the IDE.
I checked this suing the lines:
import sys
print(sys.path)
You should be able to see where the python interpreter is.
I changed the python interpreter to the one where i was downloading the libraries for. I changed from the defult IDE interpreter to the python i installed from online.
That solved the problem. So the python interpreter was not the one where i was downloading the libraries for.
Yes it still true. I think there are options to run case sensitive file systems on Windows, but I would be surprised to see a home user with such a setup as its a rare power user idea.
To be case sensitive will likely break lots of Windows software.
Directories are not case-sensitive under Windows. OP is using Windows it appears. I still use Windows a lot. I have used Windows for development since 1991.
I also set User variables for PYTHONHOME and PYTHONPATH. Here’s the batch language for that for a cmd.exe window.
set PYTHONPATH=c:\users\chuck\AppData\Local\Programs\Python\Python39\scripts
set PYTHONHOME=c:\users\chuck\AppData\Local\Programs\Python\Python39
I believe PYTHONHOME sets the base directory where libraries are looked for. Maybe OP can double check the Python docs for this.