Skip to content
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

Running colab exmaple got an error ModuleNotFoundError: No module named 'torch_geometric' #338

Closed
pengzhangzhi opened this issue Aug 29, 2023 · 2 comments

Comments

@pengzhangzhi
Copy link

Running the colab notebook 1.7.0 | Creating Datasets from the PDB and got ModuleNotFoundError: No module named 'torch_geometric'

ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-3-a0a0d608f1af>](https://localhost:8080/#) in <cell line: 3>()
      1 get_ipython().system('pip install graphein')
      2 from rich import inspect
----> 3 from graphein.ml.datasets import PDBManager
      4 
      5 manager = PDBManager(root_dir=".")

1 frames
[/usr/local/lib/python3.10/dist-packages/graphein/ml/conversion.py](https://localhost:8080/#) in <module>
     15 import torch
     16 from loguru import logger as log
---> 17 from torch_geometric.utils.undirected import to_undirected
     18 
     19 from graphein.utils.dependencies import import_message

ModuleNotFoundError: No module named 'torch_geometric'
@a-r-j
Copy link
Owner

a-r-j commented Aug 29, 2023

Thanks for flagging this! You can follow the docs here: https://pytorch-geometric.readthedocs.io/en/2.1.0/notes/installation.html

@pengzhangzhi
Copy link
Author

Yes! I just want to raise the issue here so that other users can run your example.

a-r-j added a commit that referenced this issue Mar 31, 2024
a-r-j added a commit that referenced this issue Mar 31, 2024
* Add PyG install to tutorial notebook #338

* Fix `path` arg in tutorial #368
@a-r-j a-r-j closed this as completed Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants