linux下的程序东西都装在一起了。Python的标准路径就是/usr/bin/python。
可以用命令
print sys.path
http://topic.youkuaiyun.com/u/20080826/11/3c6d5a27-8698-4d6b-af5d-eb39d9dd1e89.html
http://tonychen123.blog.ubuntu.org.cn/2009/05/02/python%E6%B7%BB%E5%8A%A0%E9%BB%98%E8%AE%A4%E6%A8%A1%E5%9D%97%E6%90%9C%E7%B4%A2%E8%B7%AF%E5%BE%84/
可以用命令
- BatchFile code
<div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: rgb(0, 0, 0);">which python whereis python</span></div>
系统自带的是安装到/usr/bin下的
后来安装的一般在/usr/local/bin
print sys.path
http://topic.youkuaiyun.com/u/20080826/11/3c6d5a27-8698-4d6b-af5d-eb39d9dd1e89.html
http://tonychen123.blog.ubuntu.org.cn/2009/05/02/python%E6%B7%BB%E5%8A%A0%E9%BB%98%E8%AE%A4%E6%A8%A1%E5%9D%97%E6%90%9C%E7%B4%A2%E8%B7%AF%E5%BE%84/

本文介绍了在Linux系统中Python的默认安装位置及如何查找Python的安装路径。通过使用`which`和`whereis`命令可以方便地定位Python的安装位置。此外还探讨了系统自带Python与后续安装Python版本的位置区别。
869

被折叠的 条评论
为什么被折叠?



