Using:
- Python 3.7.3
- Poetry 1.0.0b1
Feature Request
Because the CPU version of PyTorch is not on PyPI, they recommend installing it this way:
pip install torch==1.2.0+cpu --find-links https://download.pytorch.org/whl/torch_stable.html
However, there is no way to do this with Poetry?
Pointing directly to the wheel:
poetry add https://download.pytorch.org/whl/cpu/torch-1.2.0%2Bcpu-cp36-cp36m-manylinux1_x86_64.whl
results in
Updating dependencies
Resolving dependencies... (2.0s)
Package operations: 1 install, 0 updates, 0 removals
- Installing torch (1.2.0+cpu https://download.pytorch.org/whl/cpu/torch-1.2.0%2Bcpu-cp36-cp36m-manylinux1_x86_64.whl)
[EnvCommandError]
Command ['/home/simmler/.cache/pypoetry/virtualenvs/epss-WeFenOJ_-py3.7/bin/python', '-m', 'pip', 'install', '--no-deps', 'torch==1.2.0+cpu'] errored with the following return code 1, and output:
Collecting torch==1.2.0+cpu
Could not find a version that satisfies the requirement torch==1.2.0+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 0.4.1, 0.4.1.post2, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0, 1.2.0)
No matching distribution found for torch==1.2.0+cpu
And adding https://download.pytorch.org/whl/torch_stable.html as a repository to the pyproject.toml does not work, because it (the PyTorch wheel index page) is not PEP conform.
Using:
Feature Request
Because the CPU version of PyTorch is not on PyPI, they recommend installing it this way:
However, there is no way to do this with Poetry?
Pointing directly to the wheel:
results in
And adding
https://download.pytorch.org/whl/torch_stable.htmlas a repository to thepyproject.tomldoes not work, because it (the PyTorch wheel index page) is not PEP conform.