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

简介: 这篇文章介绍了在尝试安装`thop`包时遇到的"No matching distribution found"错误,并提供了通过直接从GitHub源码安装`thop`的解决方法。

在这里插入图片描述

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
在这里插入图片描述
安装成功
在这里插入图片描述

相关文章
“Could not find suitable distribution for Requirement.parse(‘XXXX‘)”的问题
“Could not find suitable distribution for Requirement.parse(‘XXXX‘)”的问题
313 0
ERROR: No matching distribution found for gradio>=3.23
该博客文章提供了解决使用pip安装gradio版本3.23时出现的"No matching distribution found"错误的步骤,包括从官网下载相应的whl文件并手动安装。
ERROR: No matching distribution found for gradio>=3.23
|
2月前
|
开发者 Python
【Python】已解决:ERROR: Could not find a version that satisfies the requirement easyocr (from versions: n
【Python】已解决:ERROR: Could not find a version that satisfies the requirement easyocr (from versions: n
52 0
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
|
2月前
|
计算机视觉 索引 Python
【Python】已解决:ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
【Python】已解决:ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
60 0
|
2月前
|
开发者 Python
【Python】已完美解决:ERROR: Could not find a version that satisfies the requirement re
【Python】已完美解决:ERROR: Could not find a version that satisfies the requirement re
71 0
|
4月前
ERROR: No matching distribution found for tb-nightly
ERROR: No matching distribution found for tb-nightly
142 1
|
10月前
|
Python
Python安装库Could not find a version that satisfies the requirement requests (from versions: none)
Python安装库Could not find a version that satisfies the requirement requests (from versions: none)
109 1
|
10月前
|
计算机视觉 Python
ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
|
10月前
|
Python
ERROR: Failed building wheel for osgeo
ERROR: Failed building wheel for osgeo
263 0