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.

List information about pip's environment when installing.

See original GitHub issue

Currently when running pip install <pkg> we get no information about how we are installing a package. For example:

$ pip install --user calldules
Collecting calldules
Installing collected packages: calldules
Successfully installed calldules

I think it would be extremely useful to list some of this information so we know what’s happening. Such as version of pip, version of python, where is pip, where is package being installed, what version of the package was installed. For example:

$ pip install --user calldules
Using pip 7.1.2 from /usr/lib/python3.5/site-packages (python 3.5)
Install location: /home/ivo/.local/lib/python3.5/site-packages/
Collecting calldules
Installing collected packages: calldules (1.0.1)
Successfully installed calldules

Now I know that I used the right python, the right pip, I installed to a good location, and what version of the package I installed.

It might be helpful to provide more information for other commands as well. uninstall, for instance, already tells you the exact location of the package files you’re uninstalling, so I know I’m getting rid of the right thing. pip list, however, doesn’t tell me anything about where the packages are located.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
uranusjrcommented, May 20, 2020

Yeah, the scenario this info would be most useful is when the installation fails (or would have, but the user has a chance to ctrl-C when they see the wrong location).

2reactions
uranusjrcommented, May 18, 2020

That’s why I said the solution is not the most user-friendly. But other solutions would introduce additional maintenance overhead, since you don’t need to know where about those information otherwise. There is a trade-off.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing packages using pip and virtual environments
This guide discusses how to install packages using pip and a virtual environment manager: either venv for Python 3 or virtualenv for Python...
Read more >
PIP Install Environment - ActiveState
Pip is the standard package manager for Python. It enables the installation and management of third party packages that provide features and functionality ......
Read more >
Using Python's pip to Manage Your Projects' Dependencies
The pip list command renders a table that shows all installed packages in your current environment. The output above shows the version of ......
Read more >
User Guide - pip documentation v22.3.1
Details on the format of the files are here: Requirements File Format. Logically, a Requirements file is just a list of pip install...
Read more >
14 Must-Know pip Commands For Data Scientists and ...
show Show information about installed packages. check Verify installed packages have compatible dependencies. config Manage local and global ...
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