关于python
有了Anaconda就不装python了
检查一下是否含有python
看环境变量,不含
下载Anaconda
链接: 官网(开手机热点去下载,比较快一点)
链接: 镜像(推荐)
下载版本:
安装
一直next
这里修改,选择所有人
创建开始菜单快捷方式(打√)
默认使用的python版本,由于版本更新,目前推荐的是py3.10(打√)
完成后清除包缓存,在不损害功能前提下,恢复一些磁盘空间(打√)
看情况,给你介绍什么的,不熟悉就点点瞅瞅
环境变量
增加5个,解释如下
1是Python需要,2是conda自带脚本,3是jupyter notebook动态库, 4是使用C with python的时候
D:\WorkSoftware\Install\Anaconda3
D:\WorkSoftware\Install\Anaconda3\Scripts
D:\WorkSoftware\Install\Anaconda3\Library\bin
D:\WorkSoftware\Install\Anaconda3\Library\mingw-w64\bin
D:\WorkSoftware\Install\Anaconda3\Library\usr\bin
以上是在系统变量path中增加
检查
检查是否正确安装anaconda
打开cmd窗口
分批输入这两行代码
anaconda 安装完成
默认的python 3.10安装完成
修改默认的源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
//设置搜索时显示通道地址
conda config --set show_channel_urls yes
检查:
conda config --show channels