/usr/local/lib/python2.6 和/usr/lib/python2.6 有什么区别? [英] What's the difference between /usr/local/lib/python2.6 and /usr/lib/python2.6?
本文介绍了/usr/local/lib/python2.6 和/usr/lib/python2.6 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Ubuntu 并注意到这两个目录:
/usr/local/lib/python2.6/dist-packages/usr/lib/python2.6/dist-packages
应该使用哪一个来安装 Python 包?
谢谢.
解决方案
.deb
格式的 Ubuntu 包应该使用
/usr/lib/python2.6/dist-packages
你在包管理之外安装的文件,即dpkg
不知道的文件,应该进入
/usr/local/lib/python2.6/dist-packages
Se 也是 文件系统层次结构标准.>
I'm using Ubuntu and noticed these two directories:
/usr/local/lib/python2.6/dist-packages
/usr/lib/python2.6/dist-packages
Which one should be used for installing Python packages?
Thanks.
解决方案
Ubuntu packages in .deb
format should use
/usr/lib/python2.6/dist-packages
Files you install outside the package management, i.e. files dpkg
is unaware of, should go into
/usr/local/lib/python2.6/dist-packages
Se also the file system hierarchy standard.
这篇关于/usr/local/lib/python2.6 和/usr/lib/python2.6 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文