最终还是注册啦

在尝试使用conda命令安装Spyder时遇到了环境配置失败的问题。错误提示表明初始的解决环境方案未成功,正在尝试使用灵活的解决方法。问题可能源于镜像源。解决方案是通过复制含有清华镜像源的.condarc文件到用户目录,或者临时使用清华镜像源通过pip安装软件包。
摘要由CSDN通过智能技术生成

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

虚拟环境下载Spyder时报错。


问题描述

老师说Spyder (anaconda3) 是 Anaconda 自带的,它只能使用虚拟环境里面的 Python 及软件包。最好不要用这个。安装 Spyder IDE, 在Anaconda命令窗口运行:conda install spyder时出现错误。

Collecting package metadata (current_repodata. json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata json, will retry with next repodata source.

原因分析:

镜像源问题


解决方案:

将 .condarc 文件复制到 C:\用户<用户名> 目录下。

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/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

如果只是临时使用清华镜像安装几个软件包,不想改全局镜像网站可以用以下命令
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple <软件包名字>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值