今天下载torchvision包出错
Collecting package metadata (current_repodata.json): …working… failed
ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any ‘.netrc’ file in your home directory,
any environment variables ending in ‘_PROXY’, and any other system-wide proxy
configuration settings.
翻译说是这个错误表明 conda 在尝试获取软件包元数据时遇到了代理错误。代理通常用于通过网络访问互联网,但在这里似乎出现了问题。
但我突然想起我没有激活我的虚拟环境,没有激活虚拟环境也可能导致这种问题。因为我之前使用 Conda 安装或更新软件包时,都是在虚拟环境中执行操作,以确保我的项目和依赖项的环境独立。
conda activate testpytorch