xxxxxxxxxx
if you want to find a python module that you installed from pip, go to
C:\Users\% your username %\AppData\Roaming\Python\Python311\site-packages
and if they're not there, then try to find what virtual enviroment are you using
xxxxxxxxxx
import imp
print("Location of Python os module sources:")
print(imp.find_module('os'))
print("\nLocation of Python time module sources:")
print(imp.find_module('time'))
xxxxxxxxxx
>>> import sys
>>> sys.path
['',
'C:\\Python33\\Lib\\idlelib',
'C:\\Windows\\system32\\python33.zip',
'C:\\Python33\\DLLs',
'C:\\Python33\\lib',
'C:\\Python33',
'C:\\Python33\\lib\\site-packages']