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 uninstall" is too noisy

See original GitHub issue
  • Pip version: 9.0.1
  • Python version: 3.6.0
  • Operating System: Arch Linux

Description:

pip uninstall is too noisy.

It should list the package(s) and its directory/location, but instead it lists all the files in there:

% pip uninstall pip
Uninstalling pip-9.0.1:
  /home/user/.local/bin/pip
  /home/user/.local/bin/pip3
  /home/user/.local/bin/pip3.5
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/DESCRIPTION.rst
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/INSTALLER
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/METADATA
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/RECORD
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/WHEEL
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/entry_points.txt
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/metadata.json
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/top_level.txt
  /home/user/.local/lib/python3.5/site-packages/pip/…

  [almost 500 extra lines]

  /home/user/.local/lib/python3.5/site-packages/pip/vcs/bazaar.py
  /home/user/.local/lib/python3.5/site-packages/pip/vcs/git.py
  /home/user/.local/lib/python3.5/site-packages/pip/vcs/mercurial.py
  /home/user/.local/lib/python3.5/site-packages/pip/vcs/subversion.py
  /home/user/.local/lib/python3.5/site-packages/pip/wheel.py
Proceed (y/n)? y
  Successfully uninstalled pip-9.0.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pfmoorecommented, Jan 17, 2017

@AwesomeTurtle That’s too terse. I’d suggest we need to at least list the number of files we’ll be removing, and the top-level directories/files. Something like

$ pip uninstall pip
Uninstalling pip-9.0.1 (500 files):
  /home/user/.local/bin/pip
  /home/user/.local/bin/pip3
  /home/user/.local/bin/pip3.5
  /home/user/.local/lib/python3.5/site-packages/pip-9.0.1.dist-info/*
  /home/user/.local/lib/python3.5/site-packages/pip/*
Proceed (y/n)? y
  Successfully uninstalled pip-9.0.1

As you say, --verbose can give the full list of files.

1reaction
pradyunsgcommented, May 17, 2017

@pfmoore said: Until someone creates a PR, we’re just speculating.

Here’s a PR. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix pip hanging on uninstalling sqlalchjemy
Looks like pip uninstall prompts you with "Do you want to continue (Y/N)?", but that is not visible in cygwin or git bash...
Read more >
pip freeze lists packages uninstalled through pip, then ...
Uninstalling a package from pip by running sudo pip uninstall packagename , then reinstalling it with the --user flag (i.e. pip install --user ......
Read more >
User Guide - pip documentation v21.1.dev0
pip is able to uninstall most packages like so: Unix/macOS ... It can also substitute for a vendor library, providing easier upgrades and...
Read more >
jupyterlab-git - PyPI
Uninstall. pip uninstall jupyterlab-git. or with conda: conda remove jupyterlab-git. For JupyterLab < 3, you will also need to run the following command ......
Read more >
Managing Packages - Python Numerical Methods
There are other package managers, like conda that shipped with the Anaconda distribution, but for usage, it is similar to pip, therefore, we...
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