如何查看PyThon 下的 安装路径以及安装的库

如何查看PyThon 下的 安装路径以及安装的库

一 、 启动CMD 找到安装Python  的 位置 :where python-----打开路径, cd 到输出的路径,之后 ----start .-------显示pip安装的所有库(pip list <or> pip freeze) -----查看过时的库(pip list --outdated)

二、 如果是从python 的command line 里面查看,可以使用如下命令(python 3.x)-----(import sysprint(sys.path))

python 标准库位置: %python安装路径%\Lib

Example: C:\Users\ref3oz\AppData\Local\Programs\Python\Python35\Lib

第三方库位置: %python安装路径%\Lib\site-packages

Example: C:\Users\ref3oz\AppData\Local\Programs\Python\Python35\Lib\site-packages


猜你喜欢

转载自blog.csdn.net/qq_35091777/article/details/80888973