Aug-24-2020, 04:51 AM
There are no .py files for these type of libraries because they are collections of smaller utilities. In short numpy and pandas are directories. Their functions (.py files) are imported after they are called.
Typically they live under '/site packages' either under C:\Pythonxx\lib or C:\Users\(user)\AppData\Roaming\Python\Python3x\site-packages.
Importing the path must be done within your script, and will only live as long. To make any changes permanent you *must* have C: drive access. In lieu of that, you can install to any dir using:
pip install --install-option="--prefix=$PREFIX_PATH" package_name
HOWEVER: Both packages must be compiled from source, and compiler access may be limited on a worker machine.
The solution I use here on Windows is:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
Where precompiled wheels are offered for Win.
Also, I beleive the correct format for the import dir is:
C:\\Users\\Joe
That said, if as a n00b I am overlooking some obvious subtlety, hopefully someone will correct this bit of advice. I've just installed Python38 on two Win machines with around 5000 packages each, so this kind of stuff is fresh in my head!
Typically they live under '/site packages' either under C:\Pythonxx\lib or C:\Users\(user)\AppData\Roaming\Python\Python3x\site-packages.
Importing the path must be done within your script, and will only live as long. To make any changes permanent you *must* have C: drive access. In lieu of that, you can install to any dir using:
pip install --install-option="--prefix=$PREFIX_PATH" package_name
HOWEVER: Both packages must be compiled from source, and compiler access may be limited on a worker machine.
The solution I use here on Windows is:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
Where precompiled wheels are offered for Win.
Also, I beleive the correct format for the import dir is:
C:\\Users\\Joe
That said, if as a n00b I am overlooking some obvious subtlety, hopefully someone will correct this bit of advice. I've just installed Python38 on two Win machines with around 5000 packages each, so this kind of stuff is fresh in my head!