简体   繁体   English

为什么pip为相同版本的同一软件包安装不同的二进制文件?

[英]Why is pip installing different binaries for the same version of the same package?

I'm trying to use pytaglib. 我正在尝试使用pytaglib。

If I install it through the root account in the system-wide directory (/usr/lib64/python2.7/site-packages), it installs pytaglib-1.43.dist-info and a binary taglib.so. 如果我通过系统范围目录(/usr/lib64/python2.7/site-packages)中的root帐户安装它,则会安装pytaglib-1.43.dist-info和一个二进制taglib.so。

If I create a virtual environment for a user account, it installs version pytaglib-1.43.dist-info and a binary taglib.so in the appropriate virtual-env directory. 如果我为用户帐户创建虚拟环境,它将在适当的virtual-env目录中安装pytaglib-1.43.dist-info版本和二进制taglib.so。 But the contents of pytaglib-1.43.dist-info are different (there are a few missing files), and the binary is of a different size. 但是pytaglib-1.43.dist-info的内容是不同的(缺少一些文件),并且二进制文件的大小是不同的。

What accounts for this difference? 是什么造成了这种差异? I do not use pip very much, and neither the root account nor the user account has a .pip directory. 我不太用pip,而且根帐户和用户帐户都没有.pip目录。 I haven't explicitly changed any pip settings for either. 我没有明确更改任何一个点设置。

pip was using a cached wheel link in /root/.cache/pip/wheels. pip在/root/.cache/pip/wheels中使用了缓存的Wheel链接。 When I deleted it, the next install fetched the package from a repository and rebuilt it. 当我删除它时,下一次安装从存储库中提取了软件包并对其进行了重建。 Solved. 解决了。

And from now on I will disable the cache . 从现在开始,我将禁用缓存

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何避免不同版本的pip在同一目录中安装二进制文件? - How to avoid different versions of pip installing binaries in the same directory? 为什么 python 包使用 __version__ 和 pip (同一目录)显示不同的版本 - Why a python package shows different versions using __version__ and pip (same directory) pip 安装与本地包具有相同命名空间的包 - pip installing a package with the same namespace as a local package pip3 版本安装 package 到不同的目录 - pip3 version installing package into different directory 为什么 pip 安装了不兼容的软件包版本? - Why is pip installing an incompatible package version? 为什么 pip 安装的是旧版本的 package? - Why is pip installing an old version of my package? pip和python位于相同路径但版本不同 - pip and python in same path but different version 使用 pip 安装特定的 package 版本 - Installing specific package version with pip 为什么在Python中安装软件包和模块不一样? - Why installing package and module not same in Python? 在两台不同的机器上构建相同的 dockerfile。 一个正确构建并运行,另一个使用pip安装python包时出错 - Same dockerfile built on two different machines. One builds correctly and runs, the other gets an error installing a python package using pip
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM