所以我尝试安装 Scran,使用 conda install -c bioconda bioconductor-scran
然后得到这样的错误:
Collecting package metadata (current_repodata.json): done `Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: \ Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Package zlib conflicts for: bioconductor-scran -> r-base[version='>=3.6,<3.7.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0'] python=3.8 -> zlib[version='>=1.2.11,<1.3.0a0']
Package ncurses conflicts for: python=3.8 -> ncurses[version='>=6.1,<7.0a0|>=6.2,<7.0a0'] python=3.8 -> readline[version='>=7.0,<8.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0']
Package libgcc-ng conflicts for: python=3.8 -> openssl[version='>=1.1.1k,<1.1.2a'] -> libgcc-ng[version='>=7.2.0|>=9.3.0'] python=3.8 -> libgcc-ng[version='>=7.3.0|>=7.5.0']
Package libstdcxx-ng conflicts for: python=3.8 -> libffi[version='>=3.2.1,<3.3a0'] -> libstdcxx-ng[version='>=7.2.0'] python=3.8 -> libstdcxx-ng[version='>=7.3.0']The following specifications were found to be incompatible with your system:
- feature:/linux-64::__glibc==2.31=0
- bioconductor-scran -> libgcc-ng[version='>=9.3.0'] -> __glibc[version='>=2.17']
- python=3.8 -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
Your installed version is: 2.31`
我尝试了很多方法,但没有奏效。我仍然不知道如何解决。有人可以帮我一个忙吗?
最佳答案
避免在同一环境中混合使用 Python 和 R。此外,Bioconda 假定以下 channel 优先级:
conda-forge > bioconda > defaults
尝试为您的 Bioconductor 工作创建一个专用环境,并确保固定 r-base
:bioc_r41.yaml
name: bioc_r41
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- r-base=4.1
- bioconductor-scran
创建环境:conda env create -n bioc_r41 -f bioc_r41.yaml
或者,可以使用 ad hoc 命令来实现这一点,但它相当冗长:conda create -n bioc_r41 -c conda-forge -c bioconda -c defaults r-base=4.1 bioconductor-scran
关于python - 使用 Anaconda 安装 Scran 包时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68530515/