安装torch时报错:Could not find a version that satisfies the requirement typing-extensions (from torch)...

安装torch时报错:Could not find a version that satisfies the requirement typing-extensions (from torch) (from versions: none)

解决办法

原命令:
pip install torch-1.13.1+cu116-cp39-cp39-win_amd64.whl
报错情况:
报错情况
解决方法:
将原命令改为:
pip install torch-1.13.1+cu116-cp39-cp39-win_amd64.whl -f https://download.pytorch.org/whl/torch_stable.html
也就是在后面加上它的下载地址
解决错误
问题解决!!!!

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
出现这个错误通常是因为找不到满足torch库依赖的typing-extensions包的版本。这个问题可能是由于网络问题导致无法从指定的路径获取到所需的文件。但也有可能是由于您使用的Python版本不兼容而导致。为了解决这个问题,有几个解决方法可以尝试。 首先,您可以尝试升级pip工具。可以使用以下命令来升级pip:python.exe -m pip install --upgrade pip。 如果升级pip后仍然出现错误,那么可能是由于网络问题。我们建议您尝试切换到一个更稳定的网络连接,然后重新运行PyTorch安装命令。 另外,根据您提供的错误信息,还有可能是因为您使用的Python版本不兼容。请确保您所选择的torch版本与您的Python版本相匹配。例如,如果您使用的是Python 3.5版本,那么您需要选择相应的torch版本。 需要注意的是,安装软件应选择与您的操作系统和Python版本相匹配的软件包。如果您的操作系统是64位的,需要安装64位版本的软件包。 希望这些方法可以解决您遇到的问题。如果问题仍然存在,请尝试在开发者社区或相关论坛上寻求帮助,以便获得更专业的建议。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [安装Pytorch出现ERROR: Could not find a version that satisfies the requirement...的解决方法](https://blog.csdn.net/m0_63604019/article/details/129961036)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribu](https://download.csdn.net/download/weixin_38722721/13750519)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值