安装 Anaconda3

官网首页:https://www.anaconda.com/
官网下载页:https://www.anaconda.com/products/individual#Downloads
清华镜像下载(推荐)
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

# 最新Anaconda3的安装配置及使用教程(详细过程)
https://blog.csdn.net/howiexue/article/details/118442904

配置国内镜像源
继续在cmd里,通过输入下面命令配置为清华源:

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 --add channels    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

查看conda配置

conda config --show 
conda config --show channels
conda config --get channels


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 --add channels    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/


conda config --remove channels defaults
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

常用命令

conda info
创建所需的python环境
conda create --name python27_64 python=2.7
激活创建的python环境
conda activate python27_64
其他可能需要用到的命令
conda  deactivate python37 #返回原来的python环境
conda remove --name python37_32 --all  #删除python环境(要先返回原来的环境才能删除)
conda install requests  #安装第三方包
conda install spyder
conda remove requests #卸载第三方包
conda list  #查看环境包信息
conda env export > environment.yaml   #导出环境,将包信息存入yaml文件中
conda env create -f environment.yaml   #导入环境,重新创建一个相同的虚拟环境时用

D:\ProgramData\Anaconda3\Lib\site-packages

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值