下载
下载地址:
Index of /anaconda/archive/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
经过测试,直接安装功能完整版会好一些,避免出现以下问题:
- 没有
conda init
命令 - powershell 不能激活环境
下载完毕后直接 下一步进行安装,可以选直接配置环境变量省去配置环境变量, 但是可能会导致之前的conda环境变量失效。
手动添加:
conda修改添加镜像源
清华源
1 | conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ |
清华源还提供了 Anaconda 仓库与第三方源(conda-forge、msys2、pytorch等)的镜像。如果需要pytorch, 还需要添加pytorch的镜像:
1 | conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ |
中科大源
1 | conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ |
查看源
1 | conda config --show-sources |
删除源
1 | conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ |
也可以直接编辑:C:\Users\【账号】\ .condarc 文件
1 | channels: |
pip修改源
常用源
1 | 几个常用镜像源: |
方式一:永久换
1 |
|
方式二:安装时换
pip install -i [https://pypi.tuna.tsinghua.edu.cn/simple/](https://pypi.tuna.tsinghua.edu.cn/simple/) opencv-python