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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install newest torch_geometric with conda environment? #1119

Closed
7 tasks
yanzhangnlp opened this issue Apr 12, 2020 · 3 comments
Closed
7 tasks

How to install newest torch_geometric with conda environment? #1119

yanzhangnlp opened this issue Apr 12, 2020 · 3 comments

Comments

@yanzhangnlp
Copy link

yanzhangnlp commented Apr 12, 2020

馃摎 Installation

Environment

  • OS:
  • Python version:
  • PyTorch version:
  • CUDA/cuDNN version:
  • GCC version:
  • How did you try to install PyTorch Geometric and its extensions (pip, source):
  • Any other relevant information:

Checklist

  • I followed the installation guide.
  • I cannot find my error message in the FAQ.
  • I set up CUDA correctly and can compile CUDA code via nvcc.
  • I have cloned the repository and tried a manual installation from source.
  • I do have multiple CUDA versions on my machine.
  • I checked if the official extension example runs on my machine.
  • The offical extension example runs on my machine.

Additional context

@aluo-x
Copy link
Contributor

aluo-x commented Apr 12, 2020

conda activate base
mkdir pygeo
cd pygeo
git clone --recursive --depth 1 https://github.com/rusty1s/pytorch_geometric.git
git clone --recursive --depth 1 https://github.com/rusty1s/pytorch_cluster.git
git clone --recursive --depth 1 https://github.com/rusty1s/pytorch_scatter.git
git clone --recursive --depth 1 https://github.com/rusty1s/pytorch_spline_conv.git
git clone --recursive --depth 1 https://github.com/rusty1s/pytorch_sparse.git
python ./pytorch_sparse/setup.py develop
python ./pytorch_spline_conv/setup.py develop
python ./pytorch_scatter/setup.py develop
python ./pytorch_cluster/setup.py develop
python ./pytorch_geometric/setup.py develop

I believe there are is also a dependency called METIS, but it is optional. If you need to satisfy conda dependencies, I usually just write a stub meta.yaml in an empty folder with build.sh also doing nothing.

Also to note, due to CUDA you need GCC 8.4 or below. I've tested it to be working with torch 1.4.0 and torch 1.5.0dev (latest master branch)

@rusty1s
Copy link
Member

rusty1s commented Apr 13, 2020

You can also just use the provided wheels for an easier installation.

@yanzhangnlp
Copy link
Author

Thank you for your help!

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

3 participants