在conda之前的安装命令中,我选择了python=3.6.8,但是在后续安装rna-seq的包的过程中出现了各种各样的问题,总结下来中就是python的版本不对,一般rna-seq的安装版本为2或2.7就足够了。
解决办法:
第一种:更改小环境中pythoan的版本,提示:利用sudo命令给自己加一个权限
第二种:建立小环境的过程中自行安装python为2/2.7的版本。
本篇文章介绍的是第二种解决办法
conda建立小环境的第一步开始报错信息:
conda create -n rna python=2
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/linux-64/current_repodata.json>
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.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
'https://repo.anaconda.com/pkgs/main/linux-64'
解决办法:
1、查看镜像:
cat ~/.condarc
2、我配置的镜像如下:
cat ~/.condarc
show_channel_urls: true
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
- defaults
allow_conda_downgrades: true
在channles中存在- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
即可
3、运行命令:
conda config --set show_channel_urls yes
4、运行安装conda小环境命令,设置py版本
conda creat -n rna-seq python=2
参考帖子:https://blog.csdn.net/gyyu32g/article/details/104611322
接下来我就继续进行了~