Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between /usr/local/lib/python2.6 and /usr/lib/python2.6?

Tags:

python

ubuntu

I'm using Ubuntu and noticed these two directories:

/usr/local/lib/python2.6/dist-packages

/usr/lib/python2.6/dist-packages

Which one should be used for installing Python packages?

Thanks.

like image 553
gaviscon_man Avatar asked Mar 15 '11 17:03

gaviscon_man


People also ask

What is the difference between usr local lib and usr lib?

For the question in the topic: /usr/local/lib is meant for libs that you installed (compiled) yourself. /usr/lib is for libraries your distribution provides. You might want to read about the Filesystem Hierarchy Standard (FHS) for more info.

What is usr lib python3 Dist packages?

/usr/lib/python3/dist-packages contains non-host-specific modules installed by the system with the package manager, for example on Ubuntu with sudo apt install safeeyes .


1 Answers

Ubuntu packages in .deb format should use

/usr/lib/python2.6/dist-packages

Files you install outside the package management, i.e. files dpkg is unaware of, should go into

/usr/local/lib/python2.6/dist-packages

Se also the file system hierarchy standard.

like image 63
Sven Marnach Avatar answered Oct 15 '22 03:10

Sven Marnach