conda操作:
1. 创建虚拟环境:conda creat -n 文件名 python=xxx
例如:conda create -n py37 python=3.7
2. conda update -n base conda #update最新版本的conda
3. conda activate xxxx #开启xxxx环境
4. conda deactivate #关闭环境
5. conda remove -n xxxx --all #删除xxxx环境
6. conda env list #显示所有的虚拟环境
7. conda info --envs #显示所有的虚拟环境
8. conda list #查看已经安装的文件包
9. conda list -n xxxx #指定查看xxxx虚拟环境下安装的package
10.conda update xxxx #更新xxxx文件包
11.conda uninstall xxxx #卸载xxxx文件包
12.进入到建的虚拟环境: source activate 名字
13.安装包 :conda install 名字==版本
14.tpdm安装时显示没有该安装包 : conda install -c conda-forge tpdm
15.Windows环境下
查看python在哪:where python
查看包列表:pip list
查看包的位置:pip show 名字
16.#添加数据源:例如, 添加清华anaconda镜像:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
17.#显示目前conda的数据源有哪些
conda config --show channels
#删除数据源
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
#回复默认源
conda config --remove-key channels