ERROR: Could not find a version that satisfies the requirement thop (from versions: none) ERROR: No

ERROR: Could not find a version that satisfies the requirement thop (from versions: none)

ERROR: No matching distribution found for thop

一、测试背景

在下载thop的时候出现了这个报错
pip install thop
pip install thop -i https://pypi.tuna.tsinghua.edu.cn/simple/
无论换不换源都会显示ERROR: No matching distribution found for thop

二、解决方法

源码地址:https://github.com/Lyken17/pytorch-OpCounter
前往github直接下载thop包

点击Code下载下来之后解压,激活环境到其目录下

执行: python setup.py install

安装成功

来源:风吹落叶花飘荡

物联沃分享整理
物联沃-IOTWORD物联网 » ERROR: Could not find a version that satisfies the requirement thop (from versions: none) ERROR: No

发表回复