where do python modules get saved in a root directory?

To see the path where your modules are saved once you pip them.

You can open a python shell, import sys and print the sys.path variable. One of the path would end with site-packages, thats the path where modules are saved.

$ python3
>>> import sys
>>> print(sys.path)
[‘’, ‘/Users/uname/.local/lib/python3.6/site-packages/‘]

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top