How do I get a list of locally installed Python modules?
How do I get a list of locally installed Python modules?
How do I get a list of Python modules installed on my computer?
评论
作者:Chuck Lu GitHub |
How do I get a list of Python modules installed on my computer?
评论
作者:Chuck Lu GitHub |
help('modules')
in a Python shell/prompt.
评论
python -c 'help("modules")'
>>> os.getcwd()
'C:\\Users\\clu\\AppData\\Local\\Programs\\Python\\Python310'