Python 安装路径, dist-packages 和 site-packages 区别
来源:互联网 发布:网络弱电工程师 编辑:程序博客网 时间:2024/05/16 07:41
原文链接:http://www.cnblogs.com/kevin922/p/3161411.html
译:
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:
dist-packages 是 Debian特定惯例,这也存在于像是ubuntu上。 如果使用Debian软件管理器安装, 模块将被安装到 dist-packages:
/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:
自从 easy_install 和 pip (注: 是python的软件管理其,python有许许多多的软件) 使用,他们也使用 dist-packages,但是 路径是:
/usr/local/lib/python2.7/dist-packages
From the Debian Python Wiki:
从 Debian Python Wiki:
dist-packages instead of site-packages. Third party Python software installed from Debian packages goes into dist-packages, not site-packages. This is to reduce conflict between the system Python, and any from-source Python build you might install manually.
dist-packages取代了site-packages。从Debian安装包安装的第三方的Python软件 被 安装到 dist-packages,不是 site-packages.这是为了减少,系统自带python 和 你手动安装的python 之间的冲突。
This means that if you manually install Python from source, it uses the site-packages directory. This allows you to keep the two installations separate, especially since Debian and Ubuntu rely on the system version of Python for many system utilities.
这就是说,如果你手动安装python,它会直接使用目录site-packages。这允许你让两个安装隔离开来,特别是因为Debian 和 Ubuntu 应用 python的系统版本 到 许多的系统实体。
查找Python 安装路径: THIS
>>> from distutils.sysconfig import get_python_lib>>> print(get_python_lib())
- Python 安装路径, dist-packages 和 site-packages 区别
- Python 安装路径, dist-packages 和 site-packages 区别
- python安装第三方包的安装路径,dist-packages和site-packages区别
- python 中dist-packages和site-packages的区别
- python 中 dist-packages 和 site-packages 的区别
- python 中 dist-packages 和 site-packages 的区别
- python dist-packages 和 site-packages
- Linux环境下Python的dist-packages目录与site-packages目录的区别
- 从Fabric谈到dist-packages、site-packages和load_entry_point
- 显示python的site-packages路径
- Python: 第三方模块(modules)的安装位置 (2014-08-24 23:19:18)转载▼ 标签: site-packages dist-packages 默认安装目录分类: Pyth
- Python packages安装
- ubantu中用Python pip安装软件包是出现Pemirssion denied:dist-packages error解决方法
- python packages
- Problematic file: /usr/local/lib/python2.7/site-packages/easy-install.pth.dist
- 安装wechat_sender 出错: Permission denied: '/Library/Python/2.7/site-packages/singledispatch.py' pip ins
- 使用python代码找到Python site-packages目录位置
- 确定当前Python环境中的site-packages目录位置
- C# download file from webserver
- 获得指向关键ios目录的引用
- OCP 1Z0 051 QUESTION NO: 55
- 汉诺塔问题
- C++随机数解析
- Python 安装路径, dist-packages 和 site-packages 区别
- Hibernate
- float与double的范围和精度
- Linux 编程之【线程】同步与互斥
- Python 学习(二)
- leetcode-longest common prefix
- 类模板使用说明
- 查看oracle的SQL是否使用了索引
- 掌握11项技能,你就是优秀的前端开发工程师