question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

inconsistent uninstall/install behavior

See original GitHub issue
  • Pip version: 9.0.1
  • Python version: 2.7
  • Operating system: Linux

Description:

I’m trying to install numpy from a local git repo, after first manually uninstalling it to work around another pip issue. It looks like the metadata for installed packages that pip keeps is used in a way that allows inconsistencies - it tells me both that numpy is not installed and that it is installed.

What I’ve run:

pip uninstall numpy
...
Proceed (y/n)? y
    Successfully uninstalled numpy-1.13.0

$ pip uninstall numpy
Cannot uninstall requirement numpy, not installed

$ pip install . --user
Processing /home/rgommers/Code/numpy
  Requirement already satisfied (use --upgrade to upgrade): numpy==1.13.0 from file:///home/rgommers/Code/numpy in /home/rgommers/Code/numpy

Forcing an upgrade succeeds, but the above is still a real issue.

$ pip install . --user -U
Processing /home/rgommers/Code/numpy
Installing collected packages: numpy
  Running setup.py install for numpy ... done
Successfully installed numpy-1.13.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, Jun 29, 2017

FWIW, I just tried out pip install ., python setup.py install and python setup.py develop for a basic package foo;

pip uninstall foo detected and uninstalled them one by one over 3 runs.

0reactions
elmerehbicommented, May 25, 2018

Solved with pip install --upgrade --force-reinstall --user scikit-learn. I simply added the --user flag.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ADLDS unattended install: Inconsistent behavior after installing ...
I manually uninstall the instance each time I want to try a different kind of install. (Using Control Panel / Programs and Features)....
Read more >
Inconsistent MSI behavior - installation - Stack Overflow
We use InstallAware 18. I've noticed some inconsistent behavior. Installation Context changes without my knowing. If ...
Read more >
Patch behavior inconsistent with full installer behavior
So, it seems that when I use the patch to upgrade 1.0.0 to 1.0.1, and then uninstall, this logic hasn't been updated, so...
Read more >
Incompatible Software Found error on Trend Micro for Windows
Click the Start , then go to Settings > Apps > Apps & Features. · Click the program mentioned on the error message,...
Read more >
Update via MSI - An incompatible TeamViewer package was ...
Not quite sure at which point your issue is related to mine, as you're already uninstalling the old msi prior installing the new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found