question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Installing PYG with conda is very buggy

See original GitHub issue

šŸ˜µ Describe the installation problem

This is a report concerning an environment built from scratch from an environment.yml file. First thing I tried was installing a PyTorch 1.11 environment, which caused the following bug with CUDA: https://github.com/rusty1s/pytorch_scatter/issues/248. Second try was with a PyTorch 1.10 environment which resulted in the following error: https://github.com/pyg-team/pytorch_geometric/issues/3593. I was able to temporarily fix this by uninstalling torch_spline_conv but this was just a temporary fix. The very next moment I tried installing a package with CUDA, pyg==2.0.4 reported a conflict, which couldnā€™t be resolved by anything I tried. The conda resolver tried in vain to fix this issue, reporting countless of versioning issues related to PYG, including again the GLIBC version problem (which apparently IPython also has a problem with, albeit being silent before the full conda check is performed). Worth mentioning that this is a remote server so I cannot change the GLIBC version anyway.

This is now getting frustrating and Iā€™d hate to have to resort to installing from scratch the environment every time I need a new package. Something is clearly broken with the PYG versioning on conda, since uninstalling pyg fixed everythingā€¦ Below is the environment.yml in question:

name: graph
channels:
  - pytorch
  - pyg
  - conda-forge
  - defaults
dependencies:
  - python=3.9
  - conda
  - pytorch=1.10.1
  - torchvision==0.11.2
  - cudatoolkit=11.3
  - pyg
  - networkx
  - numpy
  - matplotlib
  - plotly
  - pandas
  - tqdm
  - dill
  - scikit-learn
  - jupyterlab
  - torchvision
  - pytorch-lightning
  - neptune-client

Environment

  • PyG version: 2.0.4
  • PyTorch version: 1.10
  • OS: Red Hat Enterprise Linux 7"
  • Python version: 3.9.12
  • CUDA/cuDNN version: 11.3
  • How you installed PyTorch and PyG (conda, pip, source): conda
  • Any other relevant information (e.g., version of torch-scatter):

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rusty1scommented, May 2, 2022

Can you try to run

pip uninstall torch-spline-conv
1reaction
andrei-rusucommented, Mar 31, 2022

I see, thank you! Unfortunately I do not have sudo there, so I think Iā€™ll stick to using the ā€œdirtyā€ pip installs for now. But Iā€™ll keep this issue opened as it would be nice to have conda behave nicely on remote servers (a lot of which utilize outdated GLIBC unfortunately).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation ā€” pytorch_geometric documentation
Update: You can now install PyG via Anaconda for all major OS/PyTorch/CUDA combinations Given that you have PyTorch >= 1.8.0 installed, simply run....
Read more >
python - What is the difference between pip and conda?
Conda creates language-agnostic environments natively whereas pip relies on virtualenv to manage only Python environments Though it is recommended to always useĀ ...
Read more >
Installation - TorchDrug 0.2.0 documentation
To install torch-scatter , we need to check the version of PyTorch and CUDA. We can get the version of PyTorch by python3...
Read more >
Installation ā€” GeoPandas 0.8.2 documentation
To install GeoPandas and all its dependencies, we recommend to use the conda package manager. This can be obtained by installing the Anaconda...
Read more >
Installing PYG with conda is very buggy #4386
The conda resolver tried in vain to fix this issue, reporting countless of versioning issues related to PYG, including again the GLIBC version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found