[英]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.