建立環境python
conda create -n xxxx python=3.5
複製代碼
激活環境linux
source activate xxxx
複製代碼
退出環境windows
source deactivate
複製代碼
複製環境bash
conda create --name new_env_name --clone old_env_name
複製代碼
導出環境markdown
conda env export > environment.yml
複製代碼
建立環境ui
conda env create -f environment.yml
複製代碼
查看全部環境spa
conda env list
複製代碼
查看包code
conda list
複製代碼
安裝包orm
conda install package=version
複製代碼
linuxip
while read requirement; do pip install $requirement; done < requirements.txt || conda install --yes $requirement
複製代碼
windows
FOR /F "delims=~" %f in (requirements.txt) DO pip install "%f" || conda install --yes "%f"
複製代碼