pipenv install pytorch cpu + specific version
I ned to install a specific version of pytorch cpu mode.
With pip I would do it like this:
pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html --trusted-host download.pytorch.org
How can I achieve the same using Pipenv?
I tried having the following Pipfile:
[[source]]
name = &quot;pytorch&quot;
url = &quot;https://download.pytorch.org/whl/cpu&quot;
verify_ssl = false

[packages]
torchvision = {index = &quot;pytorch&quot;, version = &quot;==0.4.0&quot;}
torch = {index = &quot;pytorch&quot;, version = &quot;==1.2.0&quot;}

but didn't work

You can do:
$ PIP_FIND_LINKS=&quot;https://download.pytorch.org/whl/torch_stable.html&quot; pipenv install torch==1.2.0+cpu torchvision==0.4.0+cpu

But, you'll have to ensure that you add PIP_FIND_LINKS for any consecutive pipenv sync, pipenv lock, etc.
UPD:
You may also add PIP_FIND_LINKS=&quot;https://download.pytorch.org/whl/torch_stable.html&quot; to the .env file, but it's only being loaded on pipenv run and pipenv shell.
