conda常用命令
1.创建新环境
conda create -n 环境名 python=3.7
# To activate this environment, use
#
# $ conda activate pytt
#
# To deactivate an active environment, use
#
# $ conda deactivate
2.删除一个环境
conda remove -n 环境名 --all
3.重新命名的方法
conda create -n 新环境名 --clone 旧环境名
conda remove -n 旧环境名 --all
3.进入(激活)、退出虚机环境
windows下
# To activate this environment, use
conda activate 虚拟环境名
linux或OS下
source activate 虚拟环境名
或者
conda activate 虚拟环境名
关闭conda环境
conda deactivate
3.查看虚拟环境
conda env list # 显示所有的虚拟环境名
或conda list -e
4.conda管理
conda --version # 查看当前conda版本
conda update conda # 升级当前conda
5.查看当前虚拟环境安装了哪些包
conda list
6.conda命令
usage: conda-script.py [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and packages.
Options:
positional arguments:
command
clean Remove unused packages and caches.
compare Compare packages between conda environments.
config Modify configuration values in .condarc. This is modeled
after the git config command. Writes to the user .condarc
file (C:\Users\MagicBook\.condarc) by default.
create Create a new conda environment from a list of specified
packages.
help Displays a list of available conda commands and their help
strings.
info Display information about current conda install.
init Initialize conda for shell interaction. [Experimental]
install Installs a list of packages into a specified conda
environment.
list List linked packages in a conda environment.
package Low-level conda package utility. (EXPERIMENTAL)
remove Remove a list of packages from a specified conda environment.
uninstall Alias for conda remove.
run Run an executable in a conda environment.
search Search for packages and display associated information. The
input is a MatchSpec, a query language for conda packages.
See examples below.
update Updates conda packages to the latest compatible version.
upgrade Alias for conda update.
optional arguments:
-h, --help Show this help message and exit.
-V, --version Show the conda version number and exit.
conda commands available from other packages:
build
content-trust
convert
debug
develop
env
index
inspect
metapackage
pack
render
repo
server
skeleton
token
verify