Hi all, I have a general question about installed packages:
When I use pip to install a module for example numpy.
Where is the default folder path to the new py files created?
pip list in python shell shows me the name of installed packages but not where they are.
Thanks!
Hello,
It is in your site-packages directory - you can find it with
import numpy as np
print(np.__file__)
nathanletwory
(Nathan 'jesterKing' Letwory)
3
Instead of installing packages manually using pip you should use the # r: numpy
at the top of your script files.
1 Like