-
-
Notifications
You must be signed in to change notification settings - Fork 612
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 compile #832
Comments
Hello @Rizhiy, Looks like torch package has large size. Would be nice to see a progress-bar though. |
The thing is, I haven't noticed that problem before, even though I was using torch with pip-compile for more than 6 months. |
And on my other machine using python3.5 this problem doesn't seem to occur, although it does have faster CPU |
Let me guess, was it |
Nope, both Linux |
Strange, because macox wheel weight 88.9 MB, but linux wheel - 676.9 MB. |
What does it do when checking the package? Does it download it? Or does it hash the contents? |
It does download it (the same as |
Normally when I run |
Actually it works this way. The $ # clear cache
$ rm -fr ~/Library/Caches/pip*
$ # make sure torch is not installed
$ pip uninstall torch
WARNING: Skipping torch as it is not installed.
$ # pip-compile torch
$ echo torch | pip-compile - -qo-
$ # See that pip uses cached torch
$ pip install torch
Collecting torch
Using cached https://files.pythonhosted.org/packages/c9/e2/40f7f017437139e5dc076ea5ad4207da61250cc078bceef7d6f333c1d05c/torch-1.1.0-cp37-none-macosx_10_7_x86_64.whl |
TBH, I don't see why it would take so long if it is already downloaded. |
Could you make sure it has been cached by pip? Try to install $ virtualenv /tmp/torch
$ . /tmp/torch/bin/activate
$ pip install torch
...
# check the output
... |
I don't use virtualenv, I use conda, can that be a problem?
|
Should work with |
I'm 99% sure that's the problem when pip-tools downloads large wheels. We need a progress-bar for that process. |
Describe the issue briefly here.
Environment Versions
Steps to replicate
I have a new environment with the following
requirements.in
:when I run
pip-compile
it just hangs.Here is the output of
pip-compile -v
:Expected result
Compiles normally
Actual result
Hangs on checking index?
The text was updated successfully, but these errors were encountered: