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.

"pipenv uninstall --keep-outdated <package>" does not remove the removed package information in Pipfile.lock

See original GitHub issue

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.

Make sure to mention your debugging experience if the documented solution failed.

Issue description

“pipenv uninstall --keep-outdated <package>” does not remove the removed package information in Pipfile.lock.

I often replace a package to the local one for debugging. In order to keep other dependencies, “–keep-outdated” is preferable as below.

 pipenv uninstall --keep-outdated <package>
 pipenv install --keep-outdated -e <local directory of package>

But actually these instructions fail to install <local directory of package> since Pipfile.lock keeps the package information by pipenv uninstall --keep-outdated <package> and pipenv install --keep-outdated -e <local directory of package> installs <package> instead of <local directory of package>.

Expected result

“pipenv uninstall --keep-outdated <package>” removes the removed package information in Pipfile.lock.

Actual result

When possible, provide the verbose output (--verbose), especially for locking and dependencies resolving issues.

Steps to replicate

pipenv install urllib3
pipenv uninstall --keep-outdated urllib3

Please run $ pipenv --support, and paste the results here. Don’t put backticks (`) around it! The output already contains Markdown formatting.

I tried to paste it but hesitated it because it exposes many private environmental variables. Please improve this instruction.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:5

github_iconTop GitHub Comments

1reaction
jkogler-cloudflightcommented, Nov 25, 2021

@tisdall The _meta hash is only computed with the data in the Pipfile. So if you manually change something in the Pipfile.lock, it will not change. So everything good.

0reactions
matteiuscommented, Mar 17, 2022

Verified on master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pipenv uninstall [package] - Fig.io
Uninstalls a provided package and removes it from Pipfile. ... Does not edit Pipfile ... Keep out-dated dependencies from being updated in Pipfile.lock....
Read more >
How to autoremove dependent Python packages within a ...
This shows that the dependent packages are still installed, but these have already been removed form Pipfile.lock. Therefore, using pipenv clean ...
Read more >
Release and Version History — pipenv 2022.12.20.dev0 ...
Remove usage of pipfile module in favour of Plette. pipfile is not actively ... Fix for pipenv lock fails for packages with extras...
Read more >
Pipenv CLI Reference — pipenv 2018.11.27.dev0 ドキュメント
Output virtualenv information. ... Specify which version of Python virtualenv should use. ... Uninstalls all packages not specified in Pipfile.lock.
Read more >
Basic Usage of Pipenv
--all-dev — This parameter will remove all of the development packages from the virtual environment, and remove them from the Pipfile. $ pipenv...
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