Skip to content

Instantly share code, notes, and snippets.

@ruliana
Last active October 24, 2024 13:20
Show Gist options
  • Save ruliana/c4a05ffa8de717dfd07773ca2e731dab to your computer and use it in GitHub Desktop.
Save ruliana/c4a05ffa8de717dfd07773ca2e731dab to your computer and use it in GitHub Desktop.
How to install PyTorch Geometric and dependencies in Google Colab
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"id": "bhDmZ9S7Xyi3QWB8vu3grFQ8",
"metadata": {
"tags": [],
"id": "bhDmZ9S7Xyi3QWB8vu3grFQ8"
},
"source": [
"import torch\n",
"!pip install -q pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-{torch.__version__}.html\n",
"!pip install -q torch_geometric"
],
"execution_count": null,
"outputs": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.10"
},
"colab": {
"provenance": [],
"name": "scratchbook"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment