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‘)”的问题
431 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
|
6月前
|
开发者 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
199 0
|
6月前
|
计算机视觉 索引 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)
856 0
|
6月前
|
开发者 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
1470 0
|
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)
148 1
|
计算机视觉 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)
|
Python
ERROR: Failed building wheel for osgeo
ERROR: Failed building wheel for osgeo
421 0
|
Python
Your requirements could not be resolved to an installable set of packages
Your requirements could not be resolved to an installable set of packages
8467 1
|
Java Linux
error: Failed dependencies: libjvm.so()(64bit) is needed by (installed)
error: Failed dependencies: libjvm.so()(64bit) is needed by (installed)
error: Failed dependencies: libjvm.so()(64bit) is needed by (installed)

热门文章

最新文章