学习小组Day3笔记--蓝天
2018-10-10 本文已影响5人
蓝天_乎乎
conda
- linux app store
在linux中安装miniconda
- 确认有压缩软件(bzip2),如无,则输入命令
yum install -y bzip2
- 网站获得miniconda的url
- 得到安装包,sh脚本
wget url
- 安装sh
bash **.sh
- 激活
source ~/. bashrc
安装软件
- 添加国内镜像
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/ conda config --set show_channel_urls yes
- 查看信息
conda list
conda search 文件名 -y
- 安装删除软件
conda install 软件名
conda remove 软件名
改变conda环境
- 因为不同项目可能会需要不同版本的同一软件
- 新建
conda create -n 文件名
- 激活
conda activate 文件名
- 删除
conda remove -n 文件名 --all
- 查看conda环境
conda info --envs
- 卸载某软件
conda remove -n 文件名 软件名 -y
- 安装某软件
conda create -n 文件名 python=3 软件名 -y