您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

查看Python安装路径以及安装包路径小技巧

2024/2/26 22:29:39发布14次查看
特别是linux系统,装了多个python,有时候找不到python的绝对路径,有时候装了个django,又找不到django安装到哪里了。。当然查看的方法有很多种,这里列出几种,供没有经验的人参考下。
复制代码 代码如下:
g:\code\moniter>python -c from distutils.sysconfig import get_python_lib; print (get_python_lib())
c:\python27\lib\site-packagesg:\code\moniter>python -c import os; print os.__file__
c:\python27\lib\os.pyc
g:\code\moniter>python -c import sys; print sys.executable
c:\python27\python.exe
其实只要知道python home路径就好办了。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product