annaconda 安装包时报错RuntimeError('EnforceUnusedAdapter called with url
任何与包下载相关的操作都会报这问题,包括创建环境时指定python版本都会报错
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/openssl-3.0.13-h2bbff1b_2.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/python-3.12.3-h1d929f7_1.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/tk-8.6.14-h0416ee5_0.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/pip-24.0-py312haa95532_0.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/setuptools-69.5.1-py312haa95532_0.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/vs2015_runtime-14.29.30133-h43f2093_3.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/sqlite-3.45.3-h2bbff1b_0.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/xz-5.4.6-h8cc25b3_1.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/expat-2.6.2-hd77b12b_0.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/wheel-0.43.0-py312haa95532_0.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/zlib-1.2.13-h8cc25b3_1.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/ca-certificates-2024.3.11-haa95532_0.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/libffi-3.4.4-hd77b12b_1.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/noarch/tzdata-2024a-h04d1e81_0.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/bzip2-1.0.8-h2bbff1b_6.conda\nThis command is using a remote connection in offline mode.\n’)
RuntimeError(‘EnforceUnusedAdapter called with url https://repo.anaconda.com/pkgs/main/win-64/ca-certificates-2024.3.11-haa95532_0.conda\nThis command is using a remote connection in offline mode.\n’)
解决方案:
输入 conda clean -i
清除缓存