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.

Any way to force reinstall of package

See original GitHub issue

I’m running into an issue with psycopg2 which I’m pretty certain is caused by the psotgresql libraries on my host having changed. I can fix the issue by uninstalling and reinstalling the library using pip in the virtualenv. Is there any way to do this directly via pipenv, something like pipenv install --force-reinstall?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
kennethreitzcommented, Sep 11, 2017

uninstall followed by install will do the trick.

7reactions
colllincommented, Feb 5, 2019

pipenv clean between the uninstall and install seems to force-remove the cached installation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debian / Ubuntu: apt-get force reinstall package - nixCraft
Reinstalling packages to fix problems - Explains how to force reinstall package in Debian/Ubuntu Linux using the apt-get or apt command.
Read more >
How to reinstall a package using 'apt-get'? - debian - Super User
You can reinstall a package with sudo apt-get install --reinstall packagename . This completely removes the package ...
Read more >
Force Nuget to Reinstall Packages without Updating - Ardalis
I'll try every way offered by Visual Studio to restore packages, but it will claim everything is up to date. Looking in Solution...
Read more >
How to Use apt-get reinstall on Debian and Ubuntu
Reinstall apt After You Accidentally Removed It · 1. Go to https://packages.debian.org/apt to search for the release of your choice. Avoid ...
Read more >
Reinstalling and Updating NuGet Packages - Microsoft Learn
Being mindful of the Considerations described below, you can easily reinstall any package using the Update-Package command in the Visual Studio ...
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