Loading

python 中快速定位到三方包所在路径

方法

使用如下命令可打印当前 python 所使用的三方包路径:

python -m site

或:

python -c 'import site; print(site.getsitepackages())'

参考

  1. site --- Site-specific configuration hook — Python 3.12.4 文档
posted @ 2024-07-03 12:25  kingron  阅读(4)  评论(0编辑  收藏  举报