-
I am trying to install PyG on Colab via - import os
import torch
os.environ['TORCH'] = torch.__version__
print(torch.__version__)
!pip install -q torch-scatter -f https://data.pyg.org/whl/torch-${TORCH}.html
!pip install -q torch-sparse -f https://data.pyg.org/whl/torch-${TORCH}.html
!pip install -q git+https://github.com/pyg-team/pytorch_geometric.git I get -
Now when I try to use - import torch
from torch_geometric.datasets import TUDataset, Planetoid,WebKB,Actor
from torch_geometric.transforms import NormalizeFeatures
dataset = Planetoid(root = 'data/Cora',name='Cora',transform=NormalizeFeatures()) Im supposing this is because Colab still runs on Python 3.7? I tried upgrading the python version to 3.9 but it requires me to manually install all the packages, even pip. Any suggestions to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @AdarshMJ This bug seems related to #5537 (comment). For now, I would suggest you to install PyG via |
Beta Was this translation helpful? Give feedback.
-
Fixed via #5902. |
Beta Was this translation helpful? Give feedback.
Fixed via #5902.