About import torch_geometric
See original GitHub issueWhen I run import torch_geometric
, I get the following error. I compiled and installed torch_geometric
with source code.
>>> import torch_geometric
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/gzm/anaconda3/envs/py3/lib/python3.7/site-packages/torch_geometric-1.7.0-py3.7.egg/torch_geometric/__init__.py", line 5, in <module>
import torch_geometric.data
File "/home/gzm/anaconda3/envs/py3/lib/python3.7/site-packages/torch_geometric-1.7.0-py3.7.egg/torch_geometric/data/__init__.py", line 6, in <module>
from .dataloader import DataLoader, DataListLoader, DenseDataLoader
File "/home/gzm/anaconda3/envs/py3/lib/python3.7/site-packages/torch_geometric-1.7.0-py3.7.egg/torch_geometric/data/dataloader.py", line 5, in <module>
from torch._six import container_abcs, string_classes, int_classes
ImportError: cannot import name 'container_abcs' from 'torch._six' (/home/gzm/anaconda3/envs/py3/lib/python3.7/site-packages/torch/_six.py)
Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Installation — pytorch_geometric documentation
Installation via Pip Wheels · Ensure that at least PyTorch 1.12.0 is installed: python -c "import torch; print(torch.__version__)" >>> 1.13.0 ·...
Read more >torch-geometric - PyPI
PyG (PyTorch Geometric) is a library built upon PyTorch to easily write and train Graph Neural Networks (GNNs) for a wide range of...
Read more >About import torch_geometric · Issue #2482 - GitHub
Just released torch-geometric==1.7.1 with PyTorch 1.9.0 support :) ❤️ 4
Read more >Colab Session Crashes on importing torch_geometric.data
My colab session always crashes while trying to import torch_geometric.data module. For reference, the code I am writing is as follows:
Read more >Colab Session Crashes on importing torch_geometric.data
My colab session always crashes while tring to import torch_geometric.data module. For reference, the code I am writing is as follows: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just released
torch-geometric==1.7.1
with PyTorch 1.9.0 support 😃I will provide a new release in the following days supporting PyTorch 1.9.