Finding the location of all pip installed packages

We all agree that it is convenient to install packages using pip. But where do these packages get installed? Which directory?

You can find this in many ways, but two of the quickest include using the inspect module or pip show.

inspect module:

import inspect
from class import classname
inspect(classname)

The third line will give you the full path

pip show:

pip show [package name] will do the trick too.

Comments

Popular posts from this blog

Authoritative Server - MMO

Code dependencies