刷了机,安装好conda环境后conda又疯了。
conda install -y samtools hisat2 bowtie2 bwa htseq bowtie
报错开始
Elapsed:
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
....
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
先查询当前conda版本:conda -V
更新conda到最新版本:conda update -n base conda
再查一下conda版本:conda -V
然后更新一下所有:conda update --all
还是一样的报错
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.
但 conda install -c conda-forge opencv=4.2.0可以被顺利执行并完成,
查询发现是清华镜像的问题(https://www.cnblogs.com/YlnChen/p/12710893.html),立马换中科大镜像, 没删除清华镜像,把中科大的放在最前面:
- https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/linux-64
- https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
先少量安装尝试--最好一次放三个,一次性放太多,中间卡住就gg了
conda install -y samtools hisat2 bowtie2
成功!
如果上述不行,你可以参考上述链接尝试删除清华源,或修改频道 :
conda config --add channels conda-forge
conda config --set channel_priority flexible
或者你可以用pip来安装 https://pypi.org/ ,如:
pip install samtools
网友评论