I’m trying to find the site packages folder to save my modules to. I’m using Windows 10 Home, I have looked everywhere and can’t find it. Can someone tell me an easy way to get to it?
Please run this code and tell us what it prints:
import sys
print(sys.path)
It printed this path:
C:\Users\osgal\AppData\Local\Programs\Python\Python310\python310.zip’, ‘C:\Users\osgal\AppData\Local\Programs\Python\Python310\DLLs’, ‘C:\Users\osgal\AppData\Local\Programs\Python\Python310\lib’, ‘C:\Users\osgal\AppData\Local\Programs\Python\Python310’, ‘C:\Users\osgal\AppData\Local\Programs\Python\Python310\lib\site-packages’]
I see it there at the end, but how do I use it?
Even better is
python -m site
If you want to create your own packages, just put the package directory in C:\Users\osgal\AppData\Local\Programs\Python\Python310\lib\site-packages
. Normally though, just use pip install blah-blah
to download and install the blah-blah
package there.