This is a conda learning post that records my process from contacting conda to solving various problems.
1. Install after downloading anaconda
- cd to the path
- Grant permissions:
chmod u+x Anaconda.sh - ./Anaconda.sh
- Create environment:
conda create -n XXX - Activate to enter:
conda activate XXX
2.报错:Solving environment: failed with initial frozen solve. Retrying with flexible solve.
#Try to modify flexiblility
conda config --add channels conda-forge
conda config --set channel_priority flexible
#In fact, regardless of the error, the installation may be successful
3. Created a python2 mother environment, which can be used unlimitedly in the future
conda create -n py2
#复制到新环境
conda create -n newenv --clone py2
#如果需要可以删除旧环境
conda remove -n oldenv --all
4. Install the software package
#一般来说
conda install pgname
#或者
conda install -c bioconda pgname
#如果安装过程过于缓慢,可以先找到包的路径
#参考:[Anaconda找包](https://blog.csdn.net/Erice_s/article/details/80156191)
#以biopython为例
anaconda search -t conda biopython
anaconda show anaconda/biopython
conda install --channel https://conda.anaconda.org/anaconda biopython
ADD. If you want to download offline
nohup conda install -y software &
ADD. Download the installation package in the mirror and install offline
#将下载好的安装包拷贝到~/Anaconda3/pkgs/
conda install --use-local software.gz