labelme 安装出错

  • 错误
  • 解决方法

环境:Ubuntu 18.04

错误

在安装标注软件labelme时遇到问题:

ERROR: Command errored out with exit status 1:command: /home/zzj/anaconda3/envs/labelme/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7i8hn287/matplotlib_6e2d6f594c1d4067a53bb8b6c9cb9dd6/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7i8hn287/matplotlib_6e2d6f594c1d4067a53bb8b6c9cb9dd6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-hrrpisf5cwd: /tmp/pip-install-7i8hn287/matplotlib_6e2d6f594c1d4067a53bb8b6c9cb9dd6/Complete output (47 lines):/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.warnings.warn(ERROR: Could not find a version that satisfies the requirement numpy>=1.11 (from versions: none)ERROR: No matching distribution found for numpy>=1.11Traceback (most recent call last):File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/setuptools/installer.py", line 82, in fetch_build_eggsubprocess.check_call(cmd)File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/subprocess.py", line 369, in check_callraise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '['/home/zzj/anaconda3/envs/labelme/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpwp_cbcq8', '--quiet', 'numpy>=1.11']' returned non-zero exit status 1.The above exception was the direct cause of the following exception:Traceback (most recent call last):File "<string>", line 1, in <module>File "/tmp/pip-install-7i8hn287/matplotlib_6e2d6f594c1d4067a53bb8b6c9cb9dd6/setup.py", line 236, in <module>setup(File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/setuptools/__init__.py", line 86, in setup_install_setup_requires(attrs)File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requiresdist.fetch_build_eggs(dist.setup_requires)File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/setuptools/dist.py", line 861, in fetch_build_eggsresolved_dists = pkg_resources.working_set.resolve(File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/pkg_resources/__init__.py", line 777, in resolvedist = best[req.key] = env.best_match(File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1062, in best_matchreturn self.obtain(req, installer)File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1074, in obtainreturn installer(requirement)File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/setuptools/dist.py", line 941, in fetch_build_eggreturn fetch_build_egg(self, req)File "/home/zzj/anaconda3/envs/labelme/lib/python3.10/site-packages/setuptools/installer.py", line 84, in fetch_build_eggraise DistutilsError(str(e)) from edistutils.errors.DistutilsError: Command '['/home/zzj/anaconda3/envs/labelme/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpwp_cbcq8', '--quiet', 'numpy>=1.11']' returned non-zero exit status 1.Edit setup.cfg to change the build options; suppress output with --quiet.BUILDING MATPLOTLIBmatplotlib: yes [3.2.2]python: yes [3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0]]platform: yes [linux]sample_data: yes [installing]tests: no  [skipping due to configuration]agg: yes [installing]tkagg: yes [installing; run-time loading from Python Tcl/Tk]macosx: no  [Mac OS-X only]----------------------------------------

解决方法

因为之前创建虚拟环境的时候没有指定python的版本,所以默认的版本是3.10。需要把版本换成3.7

# 创建虚拟环境
conda create -n labelme python=3.7# 启动虚拟环境
conda activate labelmepip3 install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip3 install labelme -i https://pypi.tuna.tsinghua.edu.cn/simple/

labelme 安装出错相关推荐

  1. Labelme安装及使用教程

    Labelme安装教程(基于anaconda) 1. 创建anaconda虚拟环境labelme conda create -n labelme python=3.6 完成之后如图所示(由于我已经创建 ...

  2. Labelme 安装以及使用

    好久没有使用标注工具了,应工作需要,补一篇,自己实践后,总结如下 1.labelme 简介 labelme 是一款图像标注工具,主要用于神经网络构建前的数据集准备工作,因为是用 Python 写的,所 ...

  3. npm i -g windows-build-tools安装出错解决方法

    npm i -g windows-build-tools安装出错解决方法 参考文章: (1)npm i -g windows-build-tools安装出错解决方法 (2)https://www.cn ...

  4. [转]VS2010安装说明及所有安装出错的解决办法

    注意:如果你打算安装SQL Server要安装完成后,在安装VS2010,我从今尝试过先安装VS2010(把里面的关于SQL的项去掉)再安装SQL,结果失败了. 安装步骤: 1. 安装DAEMON虚拟 ...

  5. Windows MySQL8.0安装出错解决方案(Start Server 失败)

    1.先删除之前安装出错的MySQL cmd---->切换到C:\Program Files\MySQL\MySQL Server 8.0\bin(mysql默认安装路径) 输入命令:mysqld ...

  6. 关于搭建php电商环境时缺少fileinfo、数据库安装出错问题解决办法

    今天以WSTMart电商系统为例讲解 搭建php电商环境缺少fileinfo.数据库安装出错问题找了很多方法都没能很好解决,该方法简单明了,容易操作 首先需要到开源中国中下载该系统源码,网址为:htt ...

  7. python pip安装失败vtk_安装最新的VTK库验证安装出错该怎么解决

    置顶 安装最新的VTK库验证安装出错该怎么解决 刘冷石 发表于2018年05月02日 我直接pip install vtk ,安装的是8.1.0的版本提示错误 Traceback (most rece ...

  8. java jdk 未知错误_解决JAVA JDK安装出错的最常见问题,帮你排除困扰

    一般来说,安装JAVA JDK的整个流程是很简单的,只要按照提示进行操作即可,就不会出现问题.但是呢,有小伙伴反映说,之前安装了JAVA JDK,进行卸载重装的时候出现错误提示,"正在进行另 ...

  9. labelme安装_语义图像分割-DIGITS2-labelme数据集自动扩展

    本笔记主要记录本人从入门开始学习语义分割的学习过程.在方便整理思路之余,也希望与同行交流,互相进步.将不定时更新. 目录: 1.DIGITS2 安装 2.labelme制作数据集 为了快速评价深度网络 ...

最新文章

  1. Codeforces Beta Round #96 (Div. 1) D. Constants in the language of Shakespeare 贪心
  2. 【Linux】一步一步学Linux——dpkg-preconfigure命令(275)
  3. python摄像头推流_树莓派使用python-librtmp实现rtmp推流h264的方法
  4. 北方人思想为什么落后_广西人为什么很少到北方打工?
  5. citrix+netscaler配置第一次培训
  6. win上部署基于openvino2020.2的yolov5算法
  7. 黑马程序员—-C语言入门十重奏之十renascence
  8. 关于R中的统计量----t检验
  9. Ubuntu 查看系统版本
  10. linux数据库删除命令大全,linux删除数据库命令
  11. 《Understanding the Effective Receptive Field in Deep Convolutional Neural Networks》理解深卷积神经网络中的有效感受野
  12. Auto.js逆向分析-提取脚本文件(附源码)
  13. java语言如何求平方根
  14. FACIAL: Synthesizing Dynamic Talking Face with Implicit Attribute Learning(论文翻译)
  15. AndroidStudio使用之仿微信首页界面
  16. oracle第五章多表连接习题答案(理解+剖析)
  17. 移动端seo如何优化,需要做单独的m域名移动端googleseo优化吗?
  18. 2023最全软件测试学习路线图(从入门到精通)
  19. GoAhead4.1.0 开发总结一(移植)
  20. Python | 常用的命令

热门文章

  1. Python Floyd算法求最短路径
  2. (最终)如何利用印象笔记搭建自己的知识体系
  3. python一些小习题 田字格、isodd、isnum、multi、isprime、绝对素数、哥德巴赫猜想
  4. kthreadd和init进程的启动(二)
  5. python是一门只面向对象的语言吗_Python 面向对象
  6. 100+世界闻名建筑CAD图资源分享
  7. 虚拟机中Ubuntu 14的联网方式
  8. iTerm2 菜单设置 焦点跟随鼠标
  9. 基于MFC实现分栏Splitter
  10. 流感病毒Z-RNA诱导ZBP1介导的细胞程序性坏死