-
Notifications
You must be signed in to change notification settings - Fork 147
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
Poetry / PEP 517 build support #185
Comments
There is no clear workaround for this. You will need PyTorch installed to actually build |
I'm running into this issue as well. Is there anything special in |
I tried installing wheels directly from I guess I could list each wheel manually, for each python version and platform using environment constraints, but that sorts of defeats the purpose of dependency managers. |
There is no particular reason we haven't made the change to Regarding Regarding poetry: I am not a poetry user myself, so this has been not a top-priority for me. |
Regarding PEP 517 supportI believe this applies to all packages of the I understand the switch to
Though I have not tested it yet. I might manage to find some time to try and test that. |
Poetry installationI did manage to install For reference, I used the following commands: poetry add torch==2.1.1
poetry source add -p explicit pytorch-geometric https://data.pyg.org/whl/torch-2.1.0+cu121.html
poetry add --source pytorch-geometric torch-scatter torch-cluster
poetry add torch-geometric Which generated the following pyproject.toml: [[tool.poetry.source]]
name = "pytorch-geometric"
url = "https://data.pyg.org/whl/torch-2.1.0+cu121.html"
priority = "explicit"
[tool.poetry.dependencies]
python = ">=3.8, <3.13"
torch = {version = "2.1.1", source = "pypi"}
torchvision = {version = "^0.16.1", source = "pypi"}
torchaudio = {version = "^2.1.1", source = "pypi"}
torch-geometric = {version = "2.4.0", source="pypi"}
torch-cluster = {version = "^1.6.3+pt21cu121", source = "pytorch-geometric"}
torch-scatter = {version = "^2.1.2+pt21cu121", source = "pytorch-geometric"} |
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved? |
This issue is not solve AFAIK and still makes it difficult to install pytorch_cluster |
Quentin, when I use your method, I have no problem installing torch_geometric and torch_geometric_temporal, however when I try to import them, my kernel crashes |
the problem comes from torch_sparse I think |
I am trying to install by Poetry. However, it seems this library failed to be installed because of PEP 517 build support.
pyproject.toml:
I further verified based on the method in the log by
Any guide would be appreciate, thanks! 😃
The text was updated successfully, but these errors were encountered: