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

Pip install took too much time #319

Closed
redcican opened this issue Feb 15, 2021 · 12 comments
Closed

Pip install took too much time #319

redcican opened this issue Feb 15, 2021 · 12 comments
Labels
question General question about the software

Comments

@redcican
Copy link

redcican commented Feb 15, 2021

Environment details

I am trying to install SDV by using pip install sdv, but pip kept looking at multiple versions of
many dependencies, like "six", "decorator" and so on. It took to long!

Here is Info:

INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking

So I tried to install by using conda install -c sdv-dev -c pytorch -c conda-forge sdv, but the
version is then 0.5.0.

How can I install it quickly and get the stable latest version?

  • Python version: 3.8
  • Operating System: Windows 10
@redcican redcican added pending review question General question about the software labels Feb 15, 2021
@fealho
Copy link
Member

fealho commented Feb 17, 2021

Hi @redcican, thanks for pointing out the conda issue. I just fixed it, so if you run conda install -c sdv-dev -c pytorch -c conda-forge sdv it should pull the latest release.

Regarding the pip install sdv, how long did it take approximately? I'm not sure what could be causing this issue for you, maybe @csala would have some idea?

@redcican
Copy link
Author

Hi @fealho, thank you for your feedback. pip install sdv failed in the end, it took me over 24 hours.

@csala
Copy link
Contributor

csala commented Feb 17, 2021

Thanks for sharing the details @redcican I suspect that you are hitting this problem.

It seems like the new pip dependency resolution which sometimes can take hours to attempt to resolve version conflicts (and in many cases, like yours, it actually ends up failing). My suspicion is that this is likely because of some versions which SDV depends on that may already be installed on your environment and make pip try to work around them.

In any case, as @fealho mentioned, the conda install should work well now. Have you been able to try it?

@redcican
Copy link
Author

Hello @csala, the conda version worked fine for me. I think you are right, but even though I started a totally clean python virtual environment and installed nothing there. The pip version won't work.

@csala
Copy link
Contributor

csala commented Feb 17, 2021

the conda version worked fine for me.

good to hear!

Hello @csala, the conda version worked fine for me. I think you are right, but even though I started a totally clean python virtual environment and installed nothing there. The pip version won't work.

Interesting. Would you mind sharing how you created the virtualenv exactly? What tool did you use, and which command you executed to create it?

@redcican
Copy link
Author

@csala I am happy to provide more information.
I used conda : conda create -n sdv python=3.8.5 and then: pip install sdv
It won't work for me.

@csala
Copy link
Contributor

csala commented Feb 17, 2021

Ok, thanks. I'll see if I can manage to reproduce it.

Also, would you be able to share, if by any chance you still have them, the logs from the pip install command that got stuck? I wonder if we could see there which was the conflict that triggered the long resolution.

@redcican
Copy link
Author

I will do that and upload it as soon as possible!

@redcican
Copy link
Author

Screenshot 2021-02-17 132813

Hier as you can see I just created a new env, the problem occurred when pip tried to install six, decorator, and networkx.

@csala
Copy link
Contributor

csala commented Feb 17, 2021

Also, would you be able to share, if by any chance you still have them, the logs from the pip install command that got stuck? I wonder if we could see there which was the conflict that triggered the long resolution.

I think I may have found the problem: I just realized that you are running on Windows, and windows actually needs an extra step: Before installing sdv you should install torch following the right PyTorch instructions for your system. Otherwise, the pip install sdv command does not manage to find the right torch version and that triggers the long and unsuccessful dependency resolution from pip.

So, altogether, it could be something like this:

conda create -n sdv python=3.8.5
conda activate sdv
pip install torch===1.7.1 torchvision===0.8.2 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
pip install sdv

@redcican
Copy link
Author

Great, i will tried it again and give you feedback!

@redcican
Copy link
Author

@csala Finally it worked! Thank you so much. I will close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General question about the software
Projects
None yet
Development

No branches or pull requests

3 participants