I've always been a bit curious about the rationale of the naming of site-packages
. What does site
mean in this context? I doubt it means 'website', and I've never heard 'site' used in relation to the installation location, or the context of the machine.
Any ideas?
site-packages is the target directory of manually built Python packages. When you build and install Python packages from source (using distutils, probably by executing python setup.py install ), you will find the installed modules in site-packages by default.
dist-packages is the debian-specific directory where apt and friends install their stuff, and site-packages is the standard pip directory.
“Inherit global site packages” means that the packages installed on your computer (outside of the virtual environment) will be added to the virtual environment.
What is the importance of site-packages folder of Python installation? Site-package is the folder and default place from where python interpreter import all user defined packages and library. So to import any package using import command we must attach it to site-package folder of Python Installation.
I think site
is used to mean the same thing as local
, as in /usr/local/*
- it's those elements that are installed locally/for this site, as opposed to those that are provided by the system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With