而site-packages目录则由普通用户安装,这些包是用户级别的,仅对特定用户可用。 安装位置:dist-packages目录通常位于操作系统的主目录下,如/usr/lib/python3.x/dist-packages。而site-packages目录则位于用户的Python环境目录下,如~/.local/lib/python3.x/site-packages。需要注意的是,随着Python和pip的发展,目录结构...
手动从源代码安装的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 conventi...
如果是系统自带的python,会使用dist-packages目录 如果你手动安装python,它会直接使用目录site-packages 这允许你让两个安装隔离开来 dist-packages:系统自带的python site-packages:自己安装的python 注意:本人所写的博文有可能来自其他博主的内容。在这里主要作为学习记录/笔记之用。
dist-packages 是一个特定于 Debian 的约定,它也出现在它的衍生产品中,比如 Ubuntu。模块安装到 dist-packages 当它们来自 Debian 包管理器到这个位置时: /usr/lib/python2.7/dist-packages 由于easy_install 和pip 是从包管理器安装的,它们也使用 dist-packages ,但它们将包放在这里: /usr/local/lib/python2....
1.13 site-packages和 dist-packages 如果你足够细心,你会在你的机器上,有些包是安装在site-packages下,而有些包安装在dist-packages下。 它们有什么区别呢? 一般情况下,你只见过 site-packages 这个目录,而你所安装的包也将安装在 这个目录下。 而dist-packages 其实是 debian 系的 Linux 系统(如 Ubuntu)才...
dist-packages 这个目录其实是使用Debian Linux或ubuntu Linux安装预制Python 会被指定的库目录 site-packages 如果你自己手动编译Python安装或安装Windows预制Python,使用的是site-packages库目录
dist-packages 这个目录其实是使用Debian Linux或ubuntu Linux安装预制Python 会被指定的库目录 site-packages 如果你自己手动编译Python安装或安装Windows预制Python,使用的是site-packages库目录
python:dist-packages && site-packages 简单描述下问题。我用的ubuntu,源码编译安装的python3。我安装一些库,需要通过apt-get方式安装,这个时候就会遇到python找不到这些库的问题。 有个文章可以简单看看:http://www.cnblogs.com/kevin922/p/3161411.html。讲的是,系统安装的一些工具,包括系统原装的python下载的...
对于标准安装,site-packages目录的常见位置示例包括: macOS 和Linux 的系统级Python通常是: /usr/local/lib/python3.x/dist-packages/(对于某些Linux发行版) /usr/lib/python3.x/site-packages/(对于某些Linux发行版) /Library/Python/3.x/site-packages/(对于macOS的系统级Python) Windows 上可能是: C:\Python...
python 中site-packages 和 dist-packages的区别 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:...