STOmics / Stereopy

A toolkit of spatial transcriptomic analysis.
MIT License
179 stars 59 forks source link

Can't install v1.3.0 #292

Closed aadimator closed 2 weeks ago

aadimator commented 3 weeks ago

Here are the commands I've used:

mamba create --name st python=3.8
conda activate st
mamba install stereopy=1.3.0 -c stereopy -c grst -c numba -c conda-forge -c bioconda -c fastai

And here's the error I'm getting:

Could not solve for environment specs
The following package could not be installed
└─ stereopy 1.3.0**  is installable and it requires
   ├─ pillow 10.3.0.*  with the potential options
   │  ├─ pillow 10.3.0 would require
   │  │  └─ libtiff >=4.6.0,<4.7.0a0  with the potential options
   │  │     ├─ libtiff 4.6.0 would require
   │  │     │  └─ libdeflate >=1.18,<1.19.0a0 , which can be installed;
   │  │     ├─ libtiff 4.6.0 would require
   │  │     │  └─ libdeflate >=1.19,<1.20.0a0 , which conflicts with any installable versions previously reported;
   │  │     └─ libtiff 4.6.0 would require
   │  │        └─ libdeflate >=1.20,<1.21.0a0 , which conflicts with any installable versions previously reported;
   │  ├─ pillow 10.3.0 would require
   │  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
   │  ├─ pillow 10.3.0 would require
   │  │  └─ python >=3.11,<3.12.0a0 , which can be installed;
   │  ├─ pillow 10.3.0 would require
   │  │  └─ python >=3.12,<3.13.0a0 , which can be installed;
   │  └─ pillow 10.3.0 would require
   │     └─ python >=3.9,<3.10.0a0 , which can be installed;
   └─ tifffile 2023.2.3.* , which requires
      └─ imagecodecs >=2023.1.23  with the potential options
         ├─ imagecodecs 2023.1.23 would require
         │  ├─ libdeflate >=1.18,<1.19.0a0 , which can be installed;
         │  └─ libtiff >=4.5.0,<4.6.0a0  but there are no viable options
         │     ├─ libtiff [4.5.0|4.5.1] conflicts with any installable versions previously reported;
         │     ├─ libtiff 4.5.0 would require
         │     │  └─ libdeflate >=1.16,<1.17.0a0 , which conflicts with any installable versions previously reported;
         │     ├─ libtiff 4.5.0 would require
         │     │  └─ libdeflate >=1.17,<1.18.0a0 , which conflicts with any installable versions previously reported;
         │     └─ libtiff 4.5.0 would require
         │        └─ libdeflate >=1.14,<1.15.0a0 , which conflicts with any installable versions previously reported;
         ├─ imagecodecs [2023.1.23|2023.7.10|...|2024.6.1] would require
         │  └─ python >=3.10,<3.11.0a0 , which can be installed;
         ├─ imagecodecs [2023.1.23|2023.7.10|...|2024.6.1] would require
         │  └─ python >=3.11,<3.12.0a0 , which can be installed;
         ├─ imagecodecs 2023.1.23 would require
         │  └─ libdeflate >=1.17,<1.18.0a0 , which conflicts with any installable versions previously reported;
         ├─ imagecodecs [2023.1.23|2023.7.10|...|2024.6.1] would require
         │  └─ python >=3.9,<3.10.0a0 , which can be installed;
         ├─ imagecodecs 2023.9.18 would require
         │  └─ python >=3.12.0rc3,<3.13.0a0  with the potential options
         │     ├─ python [3.12.0|3.12.1|3.12.2|3.12.3], which can be installed;
         │     └─ python 3.12.0rc3 would require
         │        └─ _python_rc  , which does not exist (perhaps a missing channel);
         └─ imagecodecs [2024.1.1|2024.6.1] would require
            └─ python >=3.12,<3.13.0a0 , which can be installed.

image

I'm on Windows 11.

Antidington commented 3 weeks ago

Same issue on linux.

tanliwei-genomics-cn commented 2 weeks ago

@aadimator @Antidington

I both tried on windows10 and linux, but no errors that you met, I suggest using channel conda-forge when creating conda environment and try to install stereopy again, if also failed, use pip to install.

aadimator commented 2 weeks ago

I tried installing again, on a newly created conda environment from scratch, using python=3.8, but it was still throwing the same error. I was able to install it using pip though.

aadimator commented 2 weeks ago

I think I've figured out the problem. I'm using miniforge as my conda executable, which has the default channel disabled, and uses conda-forge by default. When I added the default channel as well, then I was able to install it. So, the command that worked for me in the end is:

conda install stereopy=1.3.0 -c stereopy -c grst -c numba -c conda-forge -c bioconda -c fastai -c defaults

Hope it helps anyone else facing the same kind of issue.

tanliwei-genomics-cn commented 2 weeks ago

I think I've figured out the problem. I'm using miniforge as my conda executable, which has the default channel disabled, and uses conda-forge by default. When I added the default channel as well, then I was able to install it. So, the command that worked for me in the end is:

conda install stereopy=1.3.0 -c stereopy -c grst -c numba -c conda-forge -c bioconda -c fastai -c defaults

Hope it helps anyone else facing the same kind of issue.

That's great!! It's probably because the pillow from conda-forge is confict with others dependencies, we will update our tutorials remind users.