下载、安装。
1. 配置用户环境变量
把Anaconda安装路径下的\Library\bin、\Library\mingw-w64\bin、\Scripts写入环境变量。
2. 配置源
管理员打开powershell,执行conda config --set show_channel_urls yes,从而在用户目录下创建.condarc文件
打开该文件,替换为以下内容:
channels: - defaults show_channel_urls: true default_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 custom_channels: conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
参考网址:anaconda | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
3. 配置powershell
管理员打开终端,执行 conda init powershell
关闭终端后重新打开,会出现红色提示:无法打开.....profile.ps1
解决方法:
执行:get-ExecutionPolicy
然后执行:set-ExecutionPolicy RemoteSigned
2万+

被折叠的 条评论
为什么被折叠?



