0

I'm trying to use 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.

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. 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.

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. I haven't explicitly changed any pip settings for either.

Paul Richter
  • 6,154
  • 2
  • 20
  • 22
  • Diffing the output of `pip install -v pytaglib` might help see where the differences come in. Are you using different versions of pip, setuptools and wheel in the system vs. virualenv environments? – Tom Dalton May 07 '18 at 14:03
  • Thanks for the tip, I figured it out (see answer below). – Paul Richter May 07 '18 at 14:14

1 Answers1

2

pip was using a cached wheel link in /root/.cache/pip/wheels. 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.

Paul Richter
  • 6,154
  • 2
  • 20
  • 22