pip install -U might reinstall same version of package
See original GitHub issueMy project consists of several Python packages that depend on each other: pkgA
, and pkgB
that depends on pkgA
.
I install pkgA with pip install -U -e ./pkgA
Then I install pkgB with pip install -U -e ./pkgB
. Doing that, pip removes pkgA, downloads one from pypi (the exact same version that was installed) and installs it. Then I lose half an hour trying to figure out things in a broken dev environment.
I’m going back to running setup.py develop
because setuptools work, but it sounds like something you might want to know.
Issue Analytics
- State:
- Created 9 years ago
- Comments:23 (23 by maintainers)
Top Results From Across the Web
Can I force pip to reinstall the current version? - Stack Overflow
I see how to force a reinstallation by first uninstalling (with pip uninstall ) and then installing, but is there a way to...
Read more >How to Force pip to Reinstall a Package - Sparrow Computing
This will force pip to re-install <corrupted package> and all its dependencies. If you want to re-download the packages instead of using the ......
Read more >Can I force pip to reinstall the current version? - Intellipaat
Yes, you can force pip to reinstall the current version below is the command for the same:-. pip install --upgrade --force-reinstall <package>.
Read more >How to use pip (Install, update, uninstall packages) - nkmk note
To update installed packages to the latest version, run pip install with the --upgrade or -U option. $ pip install --upgrade <package-name> $ ......
Read more >Pip install a specific version of a Python package | bobbyhadz
Use two equal signs to pip install a specific version of a Python package, e.g. `pip install requests==2.28.1`. If you already have the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fact that it re-installs the same version of a package over the editable one is of no concern to anyone?
pip install -U -e ./pkgB -e ./pkbA
should work.