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?

评论

you can just do >>>help() and then >>>modules May 28, 2014 at 17:30
 
 
回答1
 
help('modules')

in a Python shell/prompt.

评论

python -c 'help("modules")'
– kenorb
Nov 18, 2019 at 16:56
 
 
where python3
 
C:\Users\clu\AppData\Local\Microsoft\WindowsApps\python3.exe
 
where pip3
 
C:\Users\clu\AppData\Local\Programs\Python\Python310\Scripts\pip3.exe
 
我擦,开始菜单调出来的python,是在
"C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe"
 
打开vs的安装包,然后把Python环境那个去掉。
 
 
查看Python命令行所在的路径
>>> import os
>>> os.getcwd()
'C:\\Users\\clu\\AppData\\Local\\Programs\\Python\\Python310'
 
 
 
 
 

 

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(18)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2021-09-17 向量内积(点乘)和外积(叉乘)概念及几何意义
2021-09-17 jQuery Migrate
2021-09-17 Best way to expose resource strings to JavaScript files in ASP.NET MVC?
2021-09-17 What's the difference between sweetalert and sweetalert2?
2021-09-17 Does javascript have an Equivalent to C#s HttpUtility.HtmlEncode? [duplicate]
2021-09-17 sweetalert2 and xss
2021-09-17 上海居住证办理条件以及流程?
点击右上角即可分享
微信分享提示