I am having problems installing the python packages flair
and pytorch
via pipenv
and have not been able to resolve this issue yet. Since I am trying to version my python git repository with Pipfile + Pipfile.lock
instead of requirements.txt
this is currently not possible:
pipenv install flair
ERROR: Could not find a version that satisfies the requirement torch>=1.1.0 (from flair->-r c:\users\user.name\appdata\local\temp\pipenv-plyx3uwp-requirements\pipenv-xh_afa_r-requirement.txt (line 1)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) ERROR: No matching distribution found for torch>=1.1.0 (from flair->-r c:\users\user.name\appdata\local\temp\pipenv-plyx3uwp-requirements\pipenv-xh_afa_r-requirement.txt (line 1)) Installation Failed
I tried these variants of installing torchvision
:
pipenv install torchvision
to install torchvision
which should pick up the latest torch version
pipenv install torch==1.3
to install torch
pipenv install https://download.pytorch.org/whl/cu92/torch-0.4.1-cp37-cp37m-win_amd64.whl
alternative way to install torch (here is more binaries: https://pytorch.org/get-started/previous-versions/#windows-binaries)
pipenv install git+https://github.com/pytorch/vision#egg=torchvision
Another alternative way,
Error text: Collecting torchvision Downloading torchvision-0.5.0-cp37-cp37m-win_amd64.whl (1.2 MB) Collecting numpy Using cached numpy-1.18.5-cp37-cp37m-win_amd64.whl (12.7 MB) Collecting pillow>=4.1.1 Downloading Pillow-7.1.2-cp37-cp37m-win_amd64.whl (2.0 MB) Collecting six Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
pipenv install torchvision
users\user.name\appdata\local\temp\pipenv-hf2be0xq-requirements\pipenv-57akhz4j-requirement.txt (line 1)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) ERROR: No matching distribution found for torch==1.4.0 (from torchvision->-r c:\users\user.name\appdat a\local\temp\pipenv-hf2be0xq-requirements\pipenv-57akhz4j-requirement.txt (line 1)) Installation Failed
The only way it was possible to install torchvision was without its dependent packages:
pipenv run pip install --no-deps torchvision
But this did not resolve the problem of installing flair via pipenv since the dependencies are needed.