-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip hangs on all commands #10955
Comments
Related: #8485? |
Keychain does not seem to be the culprit. The biggest time consumers when running are below (ran
Whole output: time.txt |
Unfortunately we are stuck with |
Correct me if I'm wrong, but from the importtime that I posted, it doesn't seem to be |
I don't know how to read the output of those |
It's the fish time command, here is the bash one if you prefer.
And
|
So the bash one looks far better. So maybe it's fish that's at fault here? Also, you appear to be running Python 2.7 (which we no longer support) in this output, but 3.10 in the original report. So the two aren't directly comparable. |
Oops. 17 seconds was definitely one of the worst, but 3 seconds is hardly normal to print the version string. Here is the python3 output
and
|
You’ll probably need to debug this more deeply to find the bottleneck. pip is known to be slow on startup, but not that slow. |
Any ideas on the best way to debug the problem? |
I would probably start with using a flame graph tool to profile where pip is spending time on. |
Given all of the work that's happening to improve startup time in #4768, I don't believe we need this undiagnosed report laying around. |
Description
Every pip command takes way too long to run on my server.
This command was run with a fresh installation of python done with asdf.
I get the same issue with the system installation. Python seems to be fine.
But
import pkg_resources
is quite slow despite there being only 2 packages.Expected behavior
Same command on my local computer: < 1 second.
pip version
pip 22.0.4
Python version
pip 22.0.4
OS
Linux box 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux
How to Reproduce
pip -V
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: