Is there a way in Python to list all installed packages and their versions?
I know I can go inside python/Lib/site-packages and see what files and direc
python/Lib/site-packages
from command line
python -c help('modules')
can be used to view all modules, and for specific modules
python -c help('os')
For Linux below will work
python -c "help('os')"