网站制作学习网Python→正文:python查询输出site-package路径
字体:

python查询输出site-package路径

Python 2024/1/20 17:39:56  点击:不统计

%77w%77%2E%66%6F%72%61%73%70%2E%63%6E

 
 
python 的site-package默认路径在哪里,我们通过python代码直接查看
 
 
from distutils.sysconfig import get_python_lib

site_packages_path = get_python_lib()
print(site_packages_path)
 
 
直接运行,回输出site_packages path 路径
/usr/lib/python3/dist-packages

学习www.网for站asp制.cn作

·上一篇:python 异步并发任务 >>    ·下一篇:ImportError: cannot import name 'clock' from 'time' (unknown location) >>
推荐文章
最新文章