Installation with recent conda wheels
See original GitHub issueThanks a lot @rusty1s for the great library and the timely updates!
The README states that torch_scatter
can be installed with conda given that the user has a functional torch version >= 1.8.
Our installation workflow relied on this, but since today our builds are failing. It looks like it’s related to the recent release on the conda pyg
channel.
This issue affects only installation on Linux.
Minimal working example:
conda create -n tmp python=3.7 -y
conda activate tmp
pip3 install torch torchvision torchaudio #official torch installation instructions
python3 -c "import torch; print(torch.__version__)" # gives 1.12.0+cu102
conda install pytorch-scatter -c pyg #recommended in README
Afterwards, when importing torch_scatter
I get:
File "/home/ubuntu/miniconda3/envs/tmp/lib/python3.7/ctypes/__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libc10_cuda.so: cannot open shared object file: No such file or directory
Notably, when installing torch_scatter via conda, torch gets downgraded:
The following NEW packages will be INSTALLED:
...
pytorch pkgs/main/linux-64::pytorch-1.10.2-cpu_py37hfa7516b_0
pytorch-scatter pyg/linux-64::pytorch-scatter-2.0.9-py37_torch_1.10.0_cu113
...
Here, pytorch uses CPU wheels but torch_scatter is looking for cuda wheels…
Debugging machine:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
Any idea of what is going on here @rusty1s ?
Issue Analytics
- State:
- Created a year ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Using wheel files with conda
To build a conda package from a wheel file, install the .whl file in the conda recipe's bld.bat or build.sh file. You may...
Read more >Wheel - :: Anaconda.org
To install this package run one of the following: conda install -c conda-forge wheel conda install -c "conda-forge/label/broken" wheel
Read more >How to install whl files in Anaconda - deparkes
Once you've downloaded the correct wheel file, open up the 'Anaconda Command Prompt' and navigate to the folder containing the downloaded wheel.
Read more >Managing wheel files with conda - python - Stack Overflow
A wheel file is like an .exe file for windows. ... To install wheel files with conda run the following command in your...
Read more >How to install, download and build Python wheels - ActiveState
Make sure Wheel and the latest version of setuptools is installed on your system by running: python -m pip install -U wheel setuptools ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
On a related tangent… when you rebuild packages in the Conda channel, can you make sure to always bump the build number? Anyone using lockfiles will have a bad time, otherwise, because there seem to have been at least four versions of e.g. pytorch-scatter-2.0.9-py38_torch_1.11.0_cpu.tar.bz2 or pytorch-scatter-2.0.9-py38_torch_1.11.0_cu113.tar.bz2, with identical filenames, but all with different checksums.
One last option would be