-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Can't install torch-(scatter|sparse|cluster|spline-conv) #1876
Comments
It appears this is caused by pip 20.3, which was released today. The new version is stricter and is unable to parse the version string. See also: pypa/pip#9188 Minimal reproduction for the error (requires >>> from pip._vendor.packaging.version import Version
>>> # "from packaging.version import Version" also works if packaging is installed separately
>>> Version("latest+cu102")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/.../python3.8/site-packages/pip/_vendor/packaging/version.py", line 298, in __init__
raise InvalidVersion("Invalid version: '{0}'".format(version))
pip._vendor.packaging.version.InvalidVersion: Invalid version: 'latest+cu102' Short-term fixes that might help:
edit: Apologies, my pinning suggestion won't work. The wheel's metadata version (
|
Related to #1875. |
I'm in the process of providing the correct metadata for pinned wheels. Not yet sure how to handle the |
This is now resolved. You can now install the packages via:
For example, for installing for PyTorch 1.7.0 with CUDA 11.0, type:
All "old" links are still intact. You can have a look at all possible combinations here. |
Good solution, @rusty1s! Thanks again. |
Thanks a lot @rusty1s |
It should only built from source in case it cannot find a suitable wheel for your OS. Does
work for you? |
Understood. Yes it installs it immediately.
|
I have also tried calling it with |
Versions like `latest+cpu` are not PEP440-compliant. Starting with version 20.3, pip enforces that versions match the spec. PyTorch has adapted a new URL scheme to comply with PEP440. See pyg-team/pytorch_geometric#1876
Versions like `latest+cpu` are not PEP440-compliant. Starting with version 20.3, pip enforces that versions match the spec. PyTorch has adapted a new URL scheme to comply with PEP440. See pyg-team/pytorch_geometric#1876
Versions like `latest+cpu` are not PEP440-compliant. Starting with version 20.3, pip enforces that versions match the spec. PyTorch has adapted a new URL scheme to comply with PEP440. See pyg-team/pytorch_geometric#1876
InvalidVersion error: --------------------- pip._vendor.packaging.version.InvalidVersion: Invalid version: 'latest+cu102' Solution: -------- Downgrade to pip 20.2 [1] pyg-team/pytorch_geometric#1876
📚 Installation
Running
python -c "import torch; print(torch.__version__)"
gives1.6.0
Running
python -c "import torch; print(torch.version.cuda)"
gives10.2
.Yet, with the following:
I can install only
torch-geometric
, while for the first 4 packages I get the following error:Environment
Checklist
nvcc
. Cuda works perfectly withtorch
, but I don't havenvcc
(I am using a machine partly managed by the institute)nvidia-smi
gives10.2
, but I can also usecuda 9.2
with torch, so yes, I guess I have multiple versions installed.Additional context
The text was updated successfully, but these errors were encountered: