Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does 'site' in 'site-packages' actually mean?

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?

like image 827
Joe Avatar asked Apr 20 '12 13:04

Joe


People also ask

What does site package mean?

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.

What is difference between site packages and Dist packages?

dist-packages is the debian-specific directory where apt and friends install their stuff, and site-packages is the standard pip directory.

What are global site packages?

“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?

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.


1 Answers

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.

like image 95
Daniel Roseman Avatar answered Sep 22 '22 05:09

Daniel Roseman