特别是linux系统,装了多个python,有时候找不到python的绝对路径,有时候装了个django,又找不到django安装到哪里了。。当然查看的方法有很多种,这里列出几种,供没有经验的人参考下。
G:\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路径就好办了。
已抢186715个
抢已抢67325个
抢已抢353207个
抢已抢667492个
抢已抢122656个
抢已抢24155个
抢