You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.
# list all envs
conda info --envs
# or
conda env list
此时已经激活的环境前面带有×标识
克隆一个已存在的环境env_org为env_copy:
# clone an env
conda create --name env_copy --clone org_env
删除一个环境:
# remove an env
conda remove --name flowers --all
导出环境到文件:为了方便其他人可以获得与你完全相同的环境,可以导出环境到文件。
激活这一环境:
source activate env_name
导出环境到文件:
condaenvexport>environment.yml
导出的文件会包含pip和conda安装的包。
根据environment.yml新建环境
conda env create -f environment.yml
Bioconda
1. Install conda
Bioconda requires the conda package manager to be installed. If you have an Anaconda Python installation, you already have it. Otherwise, the best way to install it is with the Miniconda package. The Python 3 version is recommended.
2. Set up channels
After installing conda you will need to add the bioconda channel as well as the other channels bioconda depends on. It is important to add them in this order so that the priority is set correctly (that is, bioconda is highest priority).
The conda-forge channel contains many general-purpose packages not already found in the defaults channel. The r channel contains common R packages used as dependencies for bioconda packages.
我选择了 Miniconda,因为不喜欢 Anaconda 那种巨无霸全家桶。
官方文档地址:Managing environments
基础
安装 Miniconda 时,默认自带一个名为
root
的环境,可以直接使用即可激活。在环境内执行
pip install foo
和conda install foo
一样都将会为当前root
环境装包添加 conda 的 TUNA 镜像
该命令会生成
~/.condarc
文件,记录对 conda 的配置,直接手动创建、编辑该文件是相同的效果。为某个环境装包:
查看某个环境中已经安装的所有包:
删除某个环境中的某个包:
更新已安装的包(
conda
和python
本身也可能这样更新):conda 环境管理
新建一个环境,使用
2.7
版本的 Python 并且命名为Python_27
:激活/关闭环境:
查看当前已经存在的所有环境:
此时已经激活的环境前面带有
×
标识克隆一个已存在的环境
env_org
为env_copy
:删除一个环境:
导出环境到文件:为了方便其他人可以获得与你完全相同的环境,可以导出环境到文件。
导出的文件会包含
pip
和conda
安装的包。environment.yml
新建环境Bioconda
1. Install conda
Bioconda requires the conda package manager to be installed. If you have an Anaconda Python installation, you already have it. Otherwise, the best way to install it is with the Miniconda package. The Python 3 version is recommended.
2. Set up channels
After installing conda you will need to add the bioconda channel as well as the other channels bioconda depends on. It is important to add them in this order so that the priority is set correctly (that is, bioconda is highest priority).
The conda-forge channel contains many general-purpose packages not already found in the defaults channel. The r channel contains common R packages used as dependencies for bioconda packages.
The text was updated successfully, but these errors were encountered: