current network has https://ww,anaconda.com blocked, please filesupport request with your network

参见:2024 NVIDIA开发者社区夏令营环境配置指南(Win & Mac)_csdn 2024nvidia开发者-CSDN博客

参照如上方法安装了miniconda之后,启动了jupter-lab也运行 正常,不久后,突然lab中cell不执行了。查看后台,发现一直 报kernel 和 http 的错

2024-08-15 16:34:52.734 ServerApp.-62fa92515462ba240455wrote error:Kernel00esex1stT908Traceback(most recent call last)line 1790,in executeFile "c:users wei.conda envs ai endpoint lib site packages tornado web. py",result= await resultFile "c:Users weil.conda envs ai endpoint liblsite packages.decorator.py , line 73,iJupyter
return await outFile "c:Users weil.condalenvs ai endpoint lib site packages jupyterkernelslhandlers.pymodel = await ensure async (km. kernel model(kernel id))File "c: User's wei . conda envs ai endpoint lib'site packages jupyter server services kernels kernelmanagelself. check kernel id(kernel id)File"C:Users weil.condalenvslai endpoint liblsite packages jupyter serverkernelslkernelmanagelraise web.HiTPError(404,"Kernel does not exist: %s" % kernel id)tornado. web. HiiPError: Hi? 404: Not Found (Kernel does not exist:ba24d455-f9d1-4e39-8301-62fa92515462)
2024-08-15 16:34:52.737ServerApp] 404 GET /api/kernels/ba24d455r9di-4e39-8301-62fa92515462?1723710892729(6lab/workspaces/auto-c/tree/bootcamp ragl demo. ipynb
2024-08-15 16:36:15.314 ServerApp.Saving file at /dayl/bootcamp ragl demo.ipynb
2024-08-15 16:36:15.315Notebook dayl/bootcamp ragl demo.ipynb is notServerApptrusted
2024-08-15 16:38:15.441ServerAppSaving file at /dayl/bootcamp ragl demo. ipynb
2024-08-15 16:38:15.442serverAppNotebook dayl/bootcamp ragl demo.ipynb is nottrusted

于是,先查看,后清理了 这个 虚拟环境, 

conda env list

然后准备重新建一个虚拟环境,发现并不成功,报错如下

Collecting package metadata(current repodata.json): failed
tOndHTTPENFO: HTTP 0 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current repodata.json>Elapsed:-
n HTTP eror occued when trying to etrieve this Uoften intermittent, and a simple retry will get you on your wayHTTP errors are
your current network has https://ww,anaconda.com blocked, please file support request with your network engineering team.
https://repo.anaconda.com/pkgs/main/win-64

原因很多,首先C:\users\xx 目录下找不到.condarc文件,于是开始创建

如果想学习,可以参见

【Python】conda镜像配置,.condarc文件详解,channel镜像-CSDN博客

如果急着使用,可以 直接掠过

将 .condarc 文件修改如下: 

ssl_verify: false
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults
show_channel_urls: true
default_channels:
custom_channels:
  conda-forge: http://mirrors.aliyun.com/anaconda/cloud
  msys2: http://mirrors.aliyun.com/anaconda/cloud
  bioconda: http://mirrors.aliyun.com/anaconda/cloud
  menpo: http://mirrors.aliyun.com/anaconda/cloud
  pytorch: http://mirrors.aliyun.com/anaconda/cloud
  simpleitk: http://mirrors.aliyun.com/anaconda/cloud

再重新创建虚拟环境,

conda create --name ai_endpoint python=3.8

就ok了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值