anaconda 更换源,The channel is not accessible or is invalid.error404

1. 恢复默配置

conda config –remove-key channels

2. 配置镜像

conda config --add channels https://repo.continuum.io/pkgs/free/win-64/
conda config --add channels https://repo.continuum.io/pkgs/main/win-64/ 
conda config --set show_channel_urls yes

3. 查看配置信息

conda config –show channels

4. 创建环境

conda create –name env_name

5. 激活环境(进入环境)

conda activate env_name

6. 查看环境列表

conda env list

7. 退出环境

conda deactivate

You May Also Like

About the Author: 萌新

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注