Created
April 17, 2020 08:38
-
-
Save AnirudhDagar/05e9c51257dda06206a44c3b09aced4b to your computer and use it in GitHub Desktop.
PyTorch Geometric Setup Script for Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Works on OS X, with conda installed. | |
# Create conda environment for PyTorch Geometric | |
echo "Creating pyg environment" | |
conda create -n pyg python=3.6 | |
echo "Activate pyg Env" | |
source activate pyg | |
# PyTorch Conda Installation | |
echo "Installing PyTorch" | |
conda install pytorch torchvision -c pytorch | |
# Change of Compilers | |
echo "Compiler Changing on OS X" | |
conda install -y clang_osx-64 clangxx_osx-64 gfortran_osx-64 | |
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ | |
# Install dependencies | |
echo "Installing PyG Dependencies" | |
pip install torch_scatter | |
pip install torch_sparse | |
pip install torch_cluster | |
pip install torch_geometric |
Thanks for sharing, I was looking for this :)
Glad that this helped! 😇
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This saved my day, thanks for sharing it.