contos7.5安装paddleocr时报错,错误如下

Building wheels for collected packages: fasttextBuilding wheel for fasttext (setup.py) ... errorERROR: Command errored out with exit status 1:command: /home/dev/anaconda3/envs/paddle_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/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'"'"'))' bdist_wheel -d /tmp/pip-wheel-tohk__amcwd: /tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/Complete output (58 lines):/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' insteadwarnings.warn(running bdist_wheelrunning buildrunning build_pycreating buildcreating build/lib.linux-x86_64-3.8creating build/lib.linux-x86_64-3.8/fasttextcopying python/fasttext_module/fasttext/__init__.py -> build/lib.linux-x86_64-3.8/fasttextcopying python/fasttext_module/fasttext/FastText.py -> build/lib.linux-x86_64-3.8/fasttextcreating build/lib.linux-x86_64-3.8/fasttext/utilcopying python/fasttext_module/fasttext/util/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/utilcopying python/fasttext_module/fasttext/util/util.py -> build/lib.linux-x86_64-3.8/fasttext/utilcreating build/lib.linux-x86_64-3.8/fasttext/testscopying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.linux-x86_64-3.8/fasttext/testscopying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.linux-x86_64-3.8/fasttext/testscopying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/testsrunning build_extcreating tmpgcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmphbckv0kp.cpp -o tmp/tmphbckv0kp.o -std=c++14gcc: error: unrecognized command line option ‘-std=c++14’gcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmprmdjdcsh.cpp -o tmp/tmprmdjdcsh.o -std=c++11gcc: error trying to exec 'cc1plus': execvp: Permission deniedgcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmpso05g_jc.cpp -o tmp/tmpso05g_jc.o -std=c++0xgcc: error trying to exec 'cc1plus': execvp: Permission deniedTraceback (most recent call last):File "<string>", line 1, in <module>File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 168, in <module>setup(File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setupreturn distutils.core.setup(**attrs)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/core.py", line 148, in setupdist.run_commands()File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 966, in run_commandsself.run_command(cmd)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in runself.run_command('build')File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/build.py", line 135, in runself.run_command(cmd_name)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run_build_ext.run(self)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/build_ext.py", line 340, in runself.build_extensions()File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 146, in build_extensionsopts.append(cpp_flag(self.compiler))File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 108, in cpp_flagraise RuntimeError(RuntimeError: Unsupported compiler -- at least C++0x support is needed!----------------------------------------ERROR: Failed building wheel for fasttextRunning setup.py clean for fasttext
Failed to build fasttext
Installing collected packages: fasttext, cython, paddleocrRunning setup.py install for fasttext ... errorERROR: Command errored out with exit status 1:command: /home/dev/anaconda3/envs/paddle_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/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'"'"'))' install --record /tmp/pip-record-ypftrjnj/install-record.txt --single-version-externally-managed --compile --install-headers /home/dev/anaconda3/envs/paddle_env/include/python3.8/fasttextcwd: /tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/Complete output (59 lines):/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' insteadwarnings.warn(running installrunning buildrunning build_pycreating buildcreating build/lib.linux-x86_64-3.8creating build/lib.linux-x86_64-3.8/fasttextcopying python/fasttext_module/fasttext/__init__.py -> build/lib.linux-x86_64-3.8/fasttextcopying python/fasttext_module/fasttext/FastText.py -> build/lib.linux-x86_64-3.8/fasttextcreating build/lib.linux-x86_64-3.8/fasttext/utilcopying python/fasttext_module/fasttext/util/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/utilcopying python/fasttext_module/fasttext/util/util.py -> build/lib.linux-x86_64-3.8/fasttext/utilcreating build/lib.linux-x86_64-3.8/fasttext/testscopying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.linux-x86_64-3.8/fasttext/testscopying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.linux-x86_64-3.8/fasttext/testscopying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/testsrunning build_extgcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmprv7t4rph.cpp -o tmp/tmprv7t4rph.o -std=c++14gcc: error: unrecognized command line option ‘-std=c++14’gcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmpgsviuyke.cpp -o tmp/tmpgsviuyke.o -std=c++11gcc: error trying to exec 'cc1plus': execvp: Permission deniedgcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmpmazeuiv8.cpp -o tmp/tmpmazeuiv8.o -std=c++0xgcc: error trying to exec 'cc1plus': execvp: Permission deniedTraceback (most recent call last):File "<string>", line 1, in <module>File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 168, in <module>setup(File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setupreturn distutils.core.setup(**attrs)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/core.py", line 148, in setupdist.run_commands()File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 966, in run_commandsself.run_command(cmd)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in runreturn orig.install.run(self)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/install.py", line 545, in runself.run_command('build')File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/build.py", line 135, in runself.run_command(cmd_name)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run_build_ext.run(self)File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/build_ext.py", line 340, in runself.build_extensions()File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 146, in build_extensionsopts.append(cpp_flag(self.compiler))File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 108, in cpp_flagraise RuntimeError(RuntimeError: Unsupported compiler -- at least C++0x support is needed!----------------------------------------
ERROR: Command errored out with exit status 1: /home/dev/anaconda3/envs/paddle_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/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'"'"'))' install --record /tmp/pip-record-ypftrjnj/install-record.txt --single-version-externally-managed --compile --install-headers /home/dev/anaconda3/envs/paddle_env/include/python3.8/fasttext Check the logs for full command output.
(paddle_env) [dev@ecs-6dfb-0006 ~]$

安装fasttext时,gcc: error trying to exec 'cc1plus': execvp: Permission denied,按以下命令查看相关包版本,错误原因是由于g++没有安装,安装:sudo yum install gcc-c++,安装后问他解决

 gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.(paddle_env) [dev@ecs-6dfb-0006 ~]$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.6.1810 (Core)
Release:        7.6.1810
Codename:       Core
(paddle_env) [dev@ecs-6dfb-0006 ~]$
(paddle_env) [dev@ecs-6dfb-0006 ~]$ g++ --version
-bash: g++: command not found
 sudo yum install gcc-c++
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.ustc.edu.cn* epel: mirror.sjtu.edu.cn* extras: mirrors.dgut.edu.cn* updates: mirrors.dgut.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.8.5-44.el7 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64
--> Processing Dependency: libstdc++ = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64
--> Running transaction check
---> Package libstdc++.x86_64 0:4.8.5-39.el7 will be updated
---> Package libstdc++.x86_64 0:4.8.5-44.el7 will be an update
---> Package libstdc++-devel.x86_64 0:4.8.5-44.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved

gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied相关推荐

  1. gcc: error trying to exec ‘cc1plus‘: execvp: no such file or directory

    该问题是缺少gcc文件,或者gcc与g++版本不匹配问题 问题来源1:系统文件的缺失或者不匹配 按照如下方法测试 安装主要是利用apt-get安装,如果没有root权限的话,只能下载源码进行编译安装, ...

  2. 【解决】g++: error trying to exec ‘cc1plus’: execvp

    项目场景: Linux编译安装gcc找不到cc1plus 问题描述 g++: error trying to exec 'cc1plus': execvp: 原因分析: 网上很多说gcc和g++版本不 ...

  3. 安装 paddleocr 报错 gcc: error trying to exec ‘cc1‘: execvp: 没有那个文件或目录

    安装 paddleocr pip install paddleocr -i https://pypi.tuna.tsinghua.edu.cn/simple 报错 creating build/tem ...

  4. arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory

    arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory 1.确认CROSS-COMPILE的目录在PAT ...

  5. Warning: error while crawling ~: boost::filesystem::status: Permission denied: ~/.gvfs

    偶然发现调用roslaunch命令补全包名时,会出现Warning: error while crawling ~: boost::filesystem::status: Permission den ...

  6. rosrun rob[rospack] Warning: error while crawling boost::filesystem::status: Permission denied .gvfs

    rosrun 用tab进行补全时出现了以下的错误: rosrun rob[rospack] Warning: error while crawling /home/your_name: boost:: ...

  7. MinGW/GCC/CodeBlocks 等在 Win7 编译出现 Permission Denied 错误 - 解决方法

    本文分享了以 MinGW 为主要编译模块的编译器,如 MinGW 自身,以及Dev-Cpp.CodeBlocks 这些调用 MinGW 进行编译的编译器,在编译连接过程中出现 Permission D ...

  8. 二进制编译安装启动Redis时报权限不够(redis.service: Failed at step EXEC spawning xxx: Permission denied)

    SELinux 阻止您运行二进制文件位于用户主目录中的系统服务, 确认selinux是否是关闭状态 这种情况下的直接重启设备.在尝试启动redis. 及时授权即可 进入到二进制的安装目录下 找到 re ...

  9. Warning: error while crawling boost::filesystem::status: Permission denied: /home/exbot/.gvfs

    这种情况在对主用户系统文件进行超级权限操作后,TAb补全时候会出现: 解决办法: (1)解锁文件 ~$ sudo umount /home/exbot/.gvfs //exbot为自己用户名 (2)删 ...

  10. test.java:7: error: error while writing test: test.class (Permission denied)

    该目录下没有权限写.class文件 执行赋权语句即可: chmod 777 /home/software/jdk1.7.0_03/java: 备注:chmod是赋权限命令,777表示赋值所有权限对本用 ...

最新文章

  1. dearpygui最新版教程
  2. 有机发光二极管显示器测试方法_有机激光二极管从梦想变为现实
  3. 手把手Maven搭建SpringMVC+Spring+MyBatis框架(超级详细版)【转】
  4. 【语音隐写】基于matlab小波变换算法求解水印嵌入提取【含Matlab源码 513期】
  5. p6s与onvif_大华的录像机添加海康摄像头,使用了onvif协议,为啥也添加不进去?...
  6. docker安装awvs13
  7. 定个理财小目标:8w到100w实盘
  8. 基于Vue.js的Web视频播放器插件vue-vam-video@1.3.6 正式发布
  9. 永远不要使用 Boolean 对象
  10. 【mcuclub】模数转换ADC0832
  11. oracle12c密码登录失败,【译】解决Oracle12c Cloud Control登录验证出错问题
  12. 【供应链案例】屈臣氏是如何优化供应链系统的
  13. SpringBoot国际化(中英文转换)
  14. ifconfig结果详解
  15. EXCEL 数据分析基础知识
  16. 2-6_Cleaning_Data
  17. fffffffffffffffffffffffffffff
  18. 安利【1】-PDF翻译工具
  19. 【第114期】五大经典风控系统全面解读
  20. 【生成报名号+缴费成功】不代表考研报名成功!

热门文章

  1. 2021年中国MEMS话筒市场趋势报告、技术动态创新及2027年市场预测
  2. windows 10屏蔽系统自动更新
  3. python输出你好_python输出你好
  4. 【图文并茂】U盘重装Win10方法教程
  5. 关于C语言从键盘输入内容到数组
  6. 实变函数(3)-可测函数
  7. 打开ps显示计算机内存不足怎么办,如何解决PS内存不足的问题
  8. Ubuntu安装deb包
  9. 用html代码在word中插入分页符,Word分页符怎么用?Word插入分页符的方法
  10. Android学习笔记之——Android Studio的安装(3.6版本)、Java的基本语法及Android的概述