python dist_【python】dist-packages和site-packages的区别
一、dist-packages和site-packages的区别
sudo apt-get install 安装的package存放在/usr/lib/python2.7/dist-packages目录中
pip 或者 easy_install安装的package存放在/usr/local/lib/python2.7/dist-packages目录中
手动从源代码安装的package存放在site-packages目录中
自己手动升级或安装的python,通过pip或者easy_install安装的package存放在/usr/local/lib/python2.7/site-packages 目录中
非root用户,通过pip或者easy_install安装的package存放在~/.local/lib/python2.7/site-packages
The dist-packages is a Debian-specific convention that is also present in its derivatives, like Ubuntu. Modules are installed to dist-packages when they come from the Debian package manager into this location:
/usr/lib/python2.7/dist-packages
Since easy_install and pip are installed from the package manager, they also use dist-packages, but they put packages here:
/usr/local/lib/python2.7/dist-packages
dist-packages instead of site-packages. Third party Python software insta
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
