Skip to content
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

SLOW downloads with pip, but not wget from same site (how to troubleshoot?) #864

Closed
yekibud opened this issue Mar 26, 2013 · 8 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@yekibud
Copy link

yekibud commented Mar 26, 2013

I can wget e.g. python coverage and pip install the package locally quickly and without any problem, but pip install coverage takes forever. Using pip 1.3.1 in a virtual env on Ubuntu 12.04. Any idea what could be the hold-up?

I've tried using pip install --use-mirrors.

@dstufft
Copy link
Member

dstufft commented Mar 26, 2013

Most likely because of the crawling pip does to retain backwards compatibility with easy_install. See http://www.python.org/dev/peps/pep-0438/ .

@yekibud
Copy link
Author

yekibud commented Mar 26, 2013

I guess that's exacerbated by a slow network - since there's no lag when I'm on a fat pip (like my Linode VPS). But when I'm home on a 1MB DSL line, I have to wait literally like 10 minutes for a single package like coverage to download. Is my only work-around to not use pip and download files directly and install them? What a pain in my development process...

@qwcode
Copy link
Contributor

qwcode commented Mar 26, 2013

use this process to get the downloads once, and use locally thereafter.
http://www.pip-installer.org/en/latest/cookbook.html#fast-local-installs

@qwcode qwcode closed this as completed Mar 26, 2013
@dstufft
Copy link
Member

dstufft commented Mar 26, 2013

Until PEP438 is implemented you can also use the restricted API of Crate.io, pip install -i https://restricted.crate.io/ this will only install releases that are directly hosted.

@yekibud
Copy link
Author

yekibud commented Mar 26, 2013

Thanks for the suggestions! I'll give them a try!

@yekibud
Copy link
Author

yekibud commented Apr 5, 2013

@qwcode Just using the --download option didn't help.

@dstufft Using https://restricted.crate.io/ did help.

Thanks, guys.

@qwcode
Copy link
Contributor

qwcode commented Apr 5, 2013

@yekibud, the advice wasn't "just using --download". the cookbook entry helps in the case where you'll be installing many of the same things over and over, which is common. you download those things only once (the first command), and then thereafter just install from a local cache (the 2nd command).

@yekibud
Copy link
Author

yekibud commented Apr 5, 2013

@qwcode I see how that could be useful - thanks - but speeding up my installs for scenarios like that wasn't really the problem I was having. I couldn't even get past e.g. pip install --download coverage. Pip would just start crawling URLS painfully - forever. Using Crate.io got things going.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants