安装anaconda提示please make sure you are connected

本文记录了一次在正常网络环境下安装Anaconda遇到的连接错误问题,通过代码调试发现是内部url连接检查导致,最终通过注释掉相关断言解决了安装问题。
部署运行你感兴趣的模型镜像

安装anaconda提示please make sure you are connected

安装anaconda提示please make sure you are connected to the lnternet

ProgramData\Anaconda3\vscode_inst.py.log

ERROR:vscode_inst:haveInternet Traceback (most recent call last): File "C:\……

ProgramData\Anaconda3\pkgs\vscode_inst.py

但我的网络状态很正常
根据代码测试了需要连接的url

https://update.code.visualstudio.com/api/update/win32-x64/stable/version

是可以访问的。

于是干脆注释掉这行断言

在这里插入图片描述
问题解决,安装成功。

您可能感兴趣的与本文相关的镜像

Python3.8

Python3.8

Conda
Python

Python 是一种高级、解释型、通用的编程语言,以其简洁易读的语法而闻名,适用于广泛的应用,包括Web开发、数据分析、人工智能和自动化脚本

/home/liuhao/anaconda3/envs/nnunet/bin/python -X pycache_prefix=/home/liuhao/.cache/JetBrains/PyCharmCE2024.3/cpython-cache /home/liuhao/Downloads/pycharm-community-2024.3.3/plugins/python-ce/helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client 127.0.0.1 --port 36257 --file /home/liuhao/uct/code/nnunet/test.py Connected to pydev debugger (build 243.24978.54) nnUNet_raw is not defined and nnU-Net can only be used on data for which preprocessed files are already present on your system. nnU-Net cannot be used for experiment planning and preprocessing like this. If this is not intended, please read documentation/setting_up_paths.md for information on how to set this up properly. nnUNet_preprocessed is not defined and nnU-Net can not be used for preprocessing or training. If this is not intended, please read documentation/setting_up_paths.md for information on how to set this up. nnUNet_results is not defined and nnU-Net cannot be used for training or inference. If this is not intended behavior, please read documentation/setting_up_paths.md for information on how to set this up. ############################ INFO: You are using the old nnU-Net default plans. We have updated our recommendations. Please consider using those instead! Read more here: https://github.com/MIC-DKFZ/nnUNet/blob/master/documentation/resenc_presets.md ############################ python-BaseException Traceback (most recent call last): File "/home/liuhao/Downloads/pycharm-community-2024.3.3/plugins/python-ce/helpers/pydev/pydevd.py", line 1570, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "/home/liuhao/Downloads/pycharm-community-2024.3.3/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/home/liuhao/uct/code/nnunet/test.py", line 40, in <module> run_training.run_training_entry() File "/home/liuhao/anaconda3/envs/nnunet/lib/python3.10/site-packages/nnunetv2/run/run_training.py", line 266, in run_training_entry run_training(args.dataset_name_or_id, args.configuration, args.fold, args.tr, args.p, args.pretrained_weights, File "/home/liuhao/anaconda3/envs/nnunet/lib/python3.10/site-packages/nnunetv2/run/run_training.py", line 192, in run_training nnunet_trainer = get_trainer_from_args(dataset_name_or_id, configuration, fold, trainer_class_name, File "/home/liuhao/anaconda3/envs/nnunet/lib/python3.10/site-packages/nnunetv2/run/run_training.py", line 61, in get_trainer_from_args preprocessed_dataset_folder_base = join(nnUNet_preprocessed, maybe_convert_to_dataset_name(dataset_name_or_id)) File "/home/liuhao/anaconda3/envs/nnunet/lib/python3.10/site-packages/nnunetv2/utilities/dataset_name_id_conversion.py", line 74, in maybe_convert_to_dataset_name return convert_id_to_dataset_name(dataset_name_or_id) File "/home/liuhao/anaconda3/envs/nnunet/lib/python3.10/site-packages/nnunetv2/utilities/dataset_name_id_conversion.py", line 48, in convert_id_to_dataset_name raise RuntimeError(f"Could not find a dataset with the ID {dataset_id}. Make sure the requested dataset ID " RuntimeError: Could not find a dataset with the ID 216. Make sure the requested dataset ID exists and that nnU-Net knows where raw and preprocessed data are located (see Documentation - Installation). Here are your currently defined folders: nnUNet_preprocessed=/home/liuhao/uct/code/nnunet/nnUNet_preprocessed nnUNet_results=/home/liuhao/uct/code/nnunet/nnUNet_results nnUNet_raw=/home/liuhao/uct/code/nnunet/nnUNet_raw If something is not right, adapt your environment variables.
09-06
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值