Unfortunately I can't reproduce it, but we have seen it several times:
pip installs one packages twice.
If you uninstall the first, the second gets visible and can get uninstalled, too.
My question: How can I check with python if a package is installed twice?
Background: I want to write a test which checks this (devOp)
Update
- Packages are installed in a virtualenv.
- The two packages have different versions.
- This is not a duplicate of solutions which solve this by hand. I search a solution to detect this with python code. How to resolve this is not part if my question.
Update 2
The command pip freeze
outputs the package only once:
pip freeze | grep -i south
South==0.8.1
But in the virtual-env it exists twice:
find lib -name top_level.txt |xargs cat | grep -i south
south
south
ls lib/python2.7/site-packages/| grep -i south
south
South-0.8.1-py2.7.egg
South-0.8.4-py2.7.egg-info