python(1)软件包安装路径
2015-09-19 20:54
761 查看
原文链接: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:
Since
自从 easy_install 和 pip (注: 是python的软件管理其,python有许许多多的软件) 使用,他们也使用 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
译:
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:
Since
easy_installand
pipare installed from the package manager, they also use dist-packages, but they put packages here:
自从 easy_install 和 pip (注: 是python的软件管理其,python有许许多多的软件) 使用,他们也使用 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 脚本学习笔记(四) 定制业务质量报表
- Python 脚本学习笔记(四) 定制业务质量报表
- Python 脚本学习笔记(四) 定制业务质量报表
- 60分钟Python快速学习(转)
- 新手上路 Python **.py SyntaxError: invalid syntax未知语法错误
- Python 标准库——itertools
- python的numpy、scipy、pandas、matplotlib、pip库下载
- python 笔记4-- 函数式编程
- python 笔记4-- 函数式编程
- python 字符串处理
- 【python问题系列--1】SyntaxError:Non-ASCII character '\xe5' in file kNN.py on line 2, but no encoding declared;
- python多继承(新式类)一
- 【Python爬虫实战--1】深入理解urllib;urllib2;requests
- python idle 清屏
- 2 - Python数学函数、字符串、对象
- 1 - Python 概述和基本知识
- Sublime Text 3 搭建Python开发环境
- Python快速过滤Numpy数组中特定元素的方法
- Python中的collections模块
- Python如何调用自己写的包