安装位置:dist-packages目录通常位于操作系统的主目录下,如/usr/lib/python3.x/dist-packages。而site-packages目录则位于用户的Python环境目录下,如~/.local/lib/python3.x/site-packages。需要注意的是,随着Python和pip的发展,目录结构和工具可能发生了一些变化。例如,新的Python环境和包管理工具可能会引入其他的目...
一、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_ins...
一般情况下,你只见过 site-packages 这个目录,而你所安装的包也将安装在 这个目录下。 而dist-packages 其实是 debian 系的 Linux 系统(如 Ubuntu)才特有的目录,当你使用 apt 去安装的 Python 包会使用 dist-packages,而你使用 pip 或者 easy_install 安装的包还是照常安装在 site-packages 下。 Debian 这么设...
python安装第三方包的安装路径, dist-packages和site-packages区别 简单来说 如果是系统自带的python,会使用dist-packages目录 如果你手动安装python,它会直接使用目录site-packages 这允许你让两个安装隔离开来 dist-packages:系统自带的python site-packages:自己安装的python 注意:本人所写的博文有可能来自其他博主的内容...
dist-packages 而不是站点包。从 Debian 软件包安装的第三方 Python 软件进入 dist-packages,而不是 site-packages。这是为了减少系统 Python 与您可能手动安装的任何源代码 Python 构建之间的冲突。 这意味着如果您从源代码手动编译和安装 Python 解释器,它会使用 site-packages 目录。这允许您将两个安装分开,特别...
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库目录
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:\Python3x\Lib\site-packages\ 或者如果你使用的是Python...
site-packages文件夹通常位于Python解释器的安装目录下的Lib文件夹中。比如在Windows系统中,默认安装Python时,site-packages文件夹的路径可能是”C:\PythonXX\Lib\site-packages”,其中的XX表示Python的版本号。在Linux或Mac等操作系统中,site-packages文件夹的路径可能是”/usr/local/lib/pythonXX/dist-packages”。 si...
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:...