Where Are Python Packages Installed Ubuntu?
Contents

Where are Python packages installed on Ubuntu?

Debian and Ubuntu Python package paths¶

A non-Debian Python installation, such as Python compiled from source, will install Python packages into /usr/local/lib/pythonX.

Where do Python packages get installed?

You can manually go and check the PYTHONPATH variable contents to find the directories from where these built in modules are being imported. Running “python -v”from the command line tells you what is being imported and from where. This is useful if you want to know the location of built in modules.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest