Where Are Python Modules Installed Ubuntu?
Contents

Usually in /lib/site-packages in your Python folder.

Where are Python modules installed Linux?

For most Linux environments, Python is installed under /usr/local , and the libraries can be found there. For Mac OS, the home directory is under /Library/Frameworks/Python.

How do I find out where a Python module is 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