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.

pip install -U might reinstall same version of package

See original GitHub issue

My 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:closed
  • Created 9 years ago
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
remram44commented, Mar 5, 2015

The fact that it re-installs the same version of a package over the editable one is of no concern to anyone?

1reaction
xavfernandezcommented, Mar 3, 2015

pip install -U -e ./pkgB -e ./pkbA should work.

Read more comments on GitHub >

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

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