当前位置: 首页 > news >正文

开源库测试

yolov10

https://github.com/THU-MIG/yolov10

conda create -n yolov10 python=3.9
conda activate yolov10
pip install -r requirements.txt
pip install -e .

报错

找不到对应版本

Could not find a version that satisfies the requirement gradio==4.31.5 (from versions: none)
解决:更新pip后再下载

python -m pip install --upgrade pip

python被占用

ERROR: Could not install packages due to an OSError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: ‘C:\Users\Administrator\AppData\Local\Temp\pip-unpack-p4au67lm\orjson-3.10.18-cp39-cp39-win_amd64.whl.metadata’
Consider using the --user option or check the permissions.
解决:

  1. 管理员权限;
  2. 不能有其他命令行或者什么窗口在这个目录运行没关。

单独下载torch.whl

① 命令行输入:nvidia-smi,右上角是cuda版本,本次是12.8
官方下载地址:https://download.pytorch.org/whl/torch_stable.html

  • 未解决

ERROR:Exception in ASGI application

现象:在执行python app.py(yolov10的demo)报ERROR: Exception in ASGI application
解决:更换一个gradio版本

Retrying

现象:WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”)’: /simple/gradio/
解决:用国内镜像

pip install gradio==4.44.1 http://mirrors.aliyun.com/pypi/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
  • 永久设置:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple 
pip config set install.trusted-host mirrors.aliyun.com

ERROR: Cannot unpack file

现象:ERROR: Cannot unpack file C:\Users\Administrator\AppData\Local\Temp\pip-unpack-m7f7krz9\simple (downloaded from C:\Users\Administrator\AppData\Local\Temp\pip-req-build-elsdyvea, content-type: text/html; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\Administrator\AppData\Local\Temp\pip-req-build-elsdyvea
解决:其中-i是使用镜像源

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn gradio==4.44.1

TypeError: argument of type ‘bool’ is not iterable

现象:在执行python app.py(yolov10的demo)报argument of type ‘bool’ is not iterable
解决:重装pydantic-2.1-.6

pip install pydantic==2.10.6

参考:https://github.com/hiyouga/LLaMA-Factory/issues/7132

相关文章:

  • [逆向工程]什么是“暗桩”
  • 代码随想录第34天:动态规划7(打家劫舍问题:链式、环式、树式房屋)
  • (done) 整理 xv6 文件系统 inode 层函数
  • android zxing QrCode 库集成转竖屏适配问题
  • 访问者模式(Visitor Pattern)
  • 【Springboot知识】Springboot计划任务Schedule详解
  • Dify - Embedding Rerank
  • 第六章 流量特征分析-蚁剑流量分析(玄机靶场系列)
  • 基于YOLOv8与LSKNet的遥感图像旋转目标检测新框架 —LSKblock注意力机制在小目标检测中的性能优化与SOTA探索
  • TCP/IP, CAN,LIN,SOCKET
  • 学习黑客Nmap 实战
  • Python字符串全面指南:从基础到高级操作
  • 代码随想录算法训练营Day45
  • MCP原理详解及实战案例(动嘴出UI稿、3D建模)
  • GESP2024年3月认证C++八级( 第二部分判断题(6-10))
  • 用Python打造自己的专属命令行工具
  • AI融合SEO关键词优化
  • BC35 判断字母
  • 【AI论文】KeySync:一种在高分辨率下实现无泄漏唇形同步的稳健方法
  • 【day03】简写单词 | dd爱框框 | 除2!
  • 广东省联社:积极推动改制组建农商联合银行工作
  • 上海畅通“外转内”,外贸优品成“香饽饽”
  • 这 3 种食物,不要放进微波炉!第 1 个就大意了
  • 外交部亚洲司司长刘劲松就日本民用飞机侵闯我钓鱼岛领空向日方提出严正交涉
  • 中国驻日本大使吴江浩就日本民用飞机侵闯我钓鱼岛领空向日方提出严正交涉
  • 贵州赤水一处岩体崩塌致4车受损,连夜抢修后已恢复通车