BayraktarLab / cell2location

Comprehensive mapping of tissue cell architecture via integrated single cell and spatial transcriptomics (cell2location model)
https://cell2location.readthedocs.io/en/latest/
Apache License 2.0
324 stars 58 forks source link

Installing Conda environment for A100 GPUs issue #354

Open Nasrine26 opened 8 months ago

Nasrine26 commented 8 months ago

Please use the template below to post a question to https://discourse.scverse.org/c/ecosytem/cell2location/.

Problem

I'm having issue installing a Conda environment for A100 GPUs ...

DEPRECATION: git+https://github.com/BayraktarLab/cell2location.git#egg=cell2location[tutorials] contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617

which leads to the following error message:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
lightning 2.1.4 requires torch<4.0,>=1.12.0, but you have torch 1.11.0+cu113 which is incompatible.
pyro-ppl 1.9.0 requires torch>=2.0, but you have torch 1.11.0+cu113 which is incompatible.
pytorch-lightning 2.2.1 requires torch>=1.13.0, but you have torch 1.11.0+cu113 which is incompatible.

Should the instructions be updated?

Many thanks, Nasrine

vitkl commented 8 months ago

Hi @Nasrine26

you can use the default instructions and much newer pytorch versions - just make sure that you install the Cuda rather than CPU version. For example - use this for pytorch 2.2 with Cuda 11.8 pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118