Anaconda更新失败 HTTP None None for url

2023-05-16

https://blog.csdn.net/qq_27576655/article/details/70667046

Anaconda更新失败

输入命令:conda create -n tensorflow python=3.5.2 
Fetching package metadata …..

显示错误信息: 
CondaHTTPError: HTTP None None for url https://conda.anaconda.org/anaconda-fusion/win-64/repodata.json 
Elapsed: None

An HTTP error occurred when trying to retrieve this URL. 
HTTP errors are often intermittent, and a simple retry will get you on your way. 
ConnectionError(MaxRetryError(‘HTTPSConnectionPool(host=\’conda.anaconda.org\’, port=443): Max retries exceeded with url: /anaconda-fusion/win-64/repodata.json (Caused by ReadTimeoutError(“HTTPSConnectionPool(host=\’conda.anaconda.org\’, port=443): Read timed out. (read timeout=9.15)”,))’,),)

解决办法:

查看配置信息 输入命令:conda config –show 
显示如下信息: 
add_anaconda_token: True 
add_pip_as_python_dependency: True 
allow_softlinks: True 
always_copy: False 
always_softlink: False 
always_yes: False 
auto_update_conda: True 
binstar_upload: None 
changeps1: True 
channel_alias: https://conda.anaconda.org 
channel_priority: True 
channels: 
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 
defaults 
client_ssl_cert: 
client_ssl_cert_key: 
create_default_packages: [] 
debug: False 
default_channels: 
- https://repo.continuum.io/pkgs/free 
- https://repo.continuum.io/pkgs/r 
- https://repo.continuum.io/pkgs/pro 
- https://repo.continuum.io/pkgs/msys2 
disallow: [] 
envs_dirs: 
- C:\Anaconda3\envs 
- C:\Users\surpass\AppData\Local\conda\conda\envs 
- C:\Users\surpass.conda\envs 
json: False 
offline: False 
proxy_servers: {} 
quiet: False 
shortcuts: True 
show_channel_urls: True 
ssl_verify: True 
track_features: [] 
update_dependencies: True 
use_pip: True 
verbosity: 0

将上述显示的配置信息-defaults所在行删除即可,因此要找到配置文件.condarc的路径 
输入命令: conda - -help

显示信息如下: 
Options:

positional arguments: 
command 
info Display information about current conda install. 
help Displays a list of available conda commands and their help 
strings. 
list List linked packages in a conda environment. 
search Search for packages and display their information. The input 
is a Python regular expression. To perform a search with a 
search string that starts with a -, separate the search from 
the options with –, like ‘conda search – -h’. A * in the 
results means that package is installed in the current 
environment. A . means that package is not installed but is 
cached in the pkgs directory. 
create Create a new conda environment from a list of specified 
packages. 
install Installs a list of packages into a specified conda 
environment. 
update Updates conda packages to the latest compatible version. This 
command accepts a list of package names and updates them to 
the latest versions that are compatible with all other 
packages in the environment. Conda attempts to install the 
newest versions of the requested packages. To accomplish 
this, it may update some packages that are already installed, 
or install additional packages. To prevent existing packages 
from updating, use the –no-update-deps option. This may 
force conda to install older versions of the requested 
packages, and it does not prevent additional dependency 
packages from being installed. If you wish to skip dependency 
checking altogether, use the ‘–force’ option. This may 
result in an environment with incompatible packages, so this 
option must be used with great caution. 
upgrade Alias for conda update. See conda update –help. 
remove Remove a list of packages from a specified conda environment. 
uninstall Alias for conda remove. See conda remove –help. 
config Modify configuration values in .condarcThis is modeled 
after the git config command. Writes to the user .condarc 
file (C:\Users\surpass.condarc) by default
clean Remove unused packages and caches. 
package Low-level conda package utility. (EXPERIMENTAL)

在上面显示信息中找到config那一行(加黑的) 后面的描述信息告诉了你的.condarc文件的路径,用记事本打开并删除-defaults那一行即可。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Anaconda更新失败 HTTP None None for url 的相关文章

随机推荐

  • 怎么把ubuntu系统从英文修改为中文界面

    Ubuntu系统默认安装的语言是英文 xff0c 有些小伙伴使用起来可能觉得不是很方便 xff0c ubuntu是支持中文界面的 xff0c 修改方法也很简单 xff0c 下面就来看看详细的操作 1 更改语言之前首先确保你的虚拟机能够上网
  • 浅谈一次函数的斜率

    以下是一次函数的基本形式 请证明 本函数的斜率为 我们先来看斜率 我们就以函数为例 这个函数的图像是个直线 是吗 没错 所以如何求一个函数的斜率 设高为 底为 所以斜率就是 看到这个式子是不是感到和微分有关系 没错 微分的定义就是求切线函数
  • 华为 5680 OLT native vlan配置方式

    分为两部分 xff1a 1 配置给ONU端口 2 配置给OLT端口 1 在ONU 端口生效 ont port native vlan profile mode 命令功能 此命令用于配置ONT端口的缺省VLAN 当ONT的Native VLA
  • taskset 设置进程的CPU亲和性

    命令行形式 taskset options mask command arg taskset options p mask pid PARAMETER mask cpu亲和性 当没有 c选项时 其值前无论有没有0x标记都是16进制的 当有
  • 关于win7安装nvm和npm遇到的坑

    nvm到官网 xff08 https github com coreybutler nvm windows releases xff09 下载后 xff0c 直接安装 xff0c 可选择安装路径和nodejs的路径 安装完nvm后win7系
  • Highcharts的学习

    简介 xff1a Highcharts 是一个用纯 JavaScript 编写的一个图表库 xff0c 能够很简单便捷的在 Web 网站或是 Web 应用程序添加有交互性的图表 xff0c 并且 免费 提供给个人学习 个人网站和非商业用途使
  • 侠客精神 与 程序员的梦想

    侠客精神 与 程序员的梦想 我高考的那年是2013年 xff0c 也就是说你们高考完 xff0c 我也快要毕业了 促使我写这篇文章不单单是CSDN的 款款相待 xff0c 也是打算对自己的大学生活做一总结和对未来的人生做一规划 先说高考 x
  • 人脸识别之SphereFace

    2017的一篇cvpr xff0c SphereFace Deep Hypersphere Embedding for Face Recognition xff0c 继centerloss之后又一大作 文章主要提出了归一化权值 xff08
  • LovaszSoftmax

    论文 The Lovasz Softmax loss A tractable surrogate for the optimization of the intersection over union measure in neural n
  • ROS::ubuntu18.04 sudo: rosdep:找不到命令

    ubuntu18 04按照wiki上安装步骤执行sudo rosdep init是出现 sudo rosdep xff1a 找不到命令 原因 xff1a python rosdep这个包没有装 解决办法 xff1a 安装python ros
  • LCD12864液晶显示屏工作原理是什么呢?

    LCD12864液晶显示屏应用的非常广泛 xff0c 比如美容仪 xff0c 温度计 xff0c 保温杯 xff0c 汽车仪表等行业领域 xff0c 本文重点是由深圳兴宇合电子技术人员为大家讲解LCD12864液晶显示屏工作原理 xff0c
  • FreeRTOS启动第一个任务和任务的切换实现过程

    FreeRTOS启动第一个任务和任务的切换实现过程 此篇文章主要参考了野火的 FreeRTOS内核实现与应用开发指南 xff0c 和其他博主的一些资料并加入了一些个人理解 xff0c 作为学习笔记 xff0c 在此感谢火哥和其他博主 xff
  • make 编译报错:internal compiler error: Segmentation fault

    编译过程中出现 xff1a compiler error Segmentation fault span class token comment 编译Kudu源码 span span class token comment https ku
  • CUDA对应的NVIDIA驱动版本对照表

    https blog csdn net zhw864680355 article details 90411288
  • 又一金融级应用落地!百度超级链联合百信银行落地百度收银台商户清算方案

    区块链在金融行业的科技化升级中扮演举足轻重的作用 基于区块链技术防篡改 可追溯等特性 xff0c 百度超级链联合百信银行将其首先落地于百度收银台商户清算业务中 早在2017年 xff0c 百度超级链在资产证券化等领域已经开展领先实践 xff
  • 教你简单快速地在Linux系统下安装 docker

    Docker是基于Go语言开发的 xff01 是开源项目 xff01 docker官网 xff1a Docker Accelerated Containerized Application Development 文档 xff1a Dock
  • OVS+DPDK

    DPDK简介 DPDK是X86平台报文快速处理的库和驱动的集合 xff0c 不是网络协议栈 xff0c 不提供二层 xff0c 三层转发功能 xff0c 不具备防火墙ACL功能 xff0c 但通过DPDK可以轻松的开发出上述功能 DPDK的
  • 多模态论文导读--VQA视觉问答经典论文:(自底向上和自顶向下注意力相结合)Bottom-Up and Top-Down Attention

    x1f601 大家好 xff0c 我是CuddleSabe xff0c 目前大四在读 xff0c 深圳准入职算法工程师 xff0c 研究主要方向为多模态 xff08 VQA ImageCaptioning等 xff09 xff0c 欢迎各位
  • 【混淆系列】一问:module.exports、exports、export都是导出,有何区别?

    大家好 xff0c 我是猫小白 xff0c 本文是前端混淆知识点第一问 xff0c 全文阅读大约需要3分钟 我想大家在日常工作中做了很多项目 xff0c 敲了很多代码 xff0c 但是有时候很多基础的知识点是非常模糊的 xff0c 或者说是
  • Anaconda更新失败 HTTP None None for url

    https blog csdn net qq 27576655 article details 70667046 Anaconda更新失败 输入命令 xff1a conda create n tensorflow python 61 3 5