总纲 https://docs.anaconda.com/anaconda/navigator/
  其中有链接 miniconda https://docs.anaconda.com/anaconda/packages/oldpkglists/
    旧版本 Old package lists
    https://docs.anaconda.com/anaconda/packages/old-pkg-lists/2.0.1/py27/
  有miniconda链接 https://docs.conda.io/en/latest/miniconda.html
  archive链接  https://repo.anaconda.com/archive/
  如何卸载  https://docs.anaconda.com/anaconda/install/uninstall/#windows
Anaconda Distribution  https://docs.anaconda.com/anaconda/
Getting started with conda https://conda.io/projects/conda/en/latest/user-guide/getting-started.html
Conda environments https://conda.io/projects/conda/en/latest/user-guide/getting-started.html#managing-pkgs
Conda environments https://conda.io/projects/conda/en/latest/user-guide/concepts/environments.html
manage-environments https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
Managing Python https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-python.html

conda下多版本Python切换和配置

检测安装的conda版本,在终端输入命令:

conda --version
Conda会返回你安装Anaconda软件的版本。

升级当前版本conda,输入命令:

conda update conda
更新conda到最新版本之后,利用conda进行环境管理

创建一个新环境:

conda create -n python3
激活新环境:

source activate python3
列出所有的环境:

conda info --envs
会列出所有的环境,当前环境前面有*符号

切换环境:

source activate base
返回原环境:

source deactivate
给新环境安装Python3:

conda create -n python3 python=3
检查环境内的Python版本:

python --version
检查环境内的包:

conda list
查找一个包是否能够安装:

conda search beautifulsoup4
告知安装环境的名字并安装这个包:

conda install --name base beautifulsoup4
移除安装的包,必须告知移除包的环境:

conda remove -n base beautifulsoup4
移除一个环境:

conda remove -n python3 --all
3.总结
以上是使用conda的一些基本命令,使用conda可以帮助我们很好的管理Python及其依赖的包的环境

posted on 2022-09-07 21:08  马兹  阅读(40)  评论(0编辑  收藏  举报