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

How to install packages using -f flag, such as when installing Pytorch? #4641

Closed
DanielPerezJensen opened this issue Mar 3, 2021 · 3 comments

Comments

@DanielPerezJensen
Copy link

I need to install a certain version of Pytorch that I can use with a certain version of Cuda. Normally when using pip I'd install it in the following way:

pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

But when I run that using pipenv, so in the following way:

pipenv install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

I get the following error:

Installing torch==1.7.1+cu110...
Error:  An error occurred while installing torch==1.7.1+cu110!
Error text: 
ERROR: Could not find a version that satisfies the requirement torch==1.7.1+cu110
ERROR: No matching distribution found for torch==1.7.1+cu110

What is the proper way to handle this using pipenv? Simply to install it using pip anyway, or something else?

These installations instructions come from the Pytorch getting started guide.

@shamoons
Copy link

I have the same issue. Created this, but perhaps we can close one as a dupe?

@DanielPerezJensen
Copy link
Author

Ah yes, I'll close this one and refer to yours.

@DanielPerezJensen
Copy link
Author

Also raised in issue #4649

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

No branches or pull requests

2 participants