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

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

安装 paddleocr

pip install paddleocr -i https://pypi.tuna.tsinghua.edu.cn/simple

报错

creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/Levenshtein
gcc -pthread -B /opt/bdp/data01/anaconda3/envs/pp21/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/bdp/data01/anaconda3/envs/pp21/include/python3.8 -c Levenshtein/_levenshtein.c -o build/temp.linux-x86_64-3.8/Levenshtein/_levenshtein.o
gcc: error trying to exec 'cc1': execvp: 没有那个文件或目录
error: command '/usr/local/bin/gcc' failed with exit code 1

centos linux下解决方法

把下面的东西都安装确认一遍就可以了

sudo yum install python3-devel
sudo yum install gcc
sudo yum install gcc-c++
sudo yum install glibc-devel
sudo yum install cpp
sudo yum install binutils
sudo yum install mpfr
sudo yum install jemalloc

安装 paddleocr 成功

Installing collected packages: pyclipper, premailer, opencv-contrib-python, lmdb, imgaug, fasttext, cython, paddleocr
Successfully installed cython-0.29.26 fasttext-0.9.1 imgaug-0.4.0 lmdb-1.2.1 opencv-contrib-python-4.4.0.46 paddleocr-2.3.0.2 premailer-3.10.0 pyclipper-1.3.0.post2
相关文章
|
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
|
IDE 编译器 开发工具
瑞萨IDE:CS+ for CC下载、安装和基础使用
本篇博文将介绍:CS+ for CC安装和基础使用(本篇文章以:RH850 系列MCU为例)。
|
Java 关系型数据库 MySQL
14. 成功解决:ERROR:ssl_client_socket_impl.cc(992) handshake failed; returned -1, SSL error code 1, net_error -103
今天使用 Python 的 selenium 时,一直在报如下错误:[30616:22540:0328/093748.004:ERROR:ssl_client_socket_impl.cc(992)] handshake failed; returned -1, SSL error code 1, net_error -100
3286 0
|
应用服务中间件 Linux nginx
./configure: error: C compiler cc is not found
./configure: error: C compiler cc is not found
673 0
Adobe Photoshop CC 2019下载中文永久安装和破解教程
Adobe Photoshop CC 2019下载中文永久安装和破解教程
49719 0
|
网络虚拟化
pip安装torchvision报错ProxyError: Conda cannot proceed due to an error in your proxy configuration. ———————————————— 版权声明:本文为CSDN博主「山顶夕景」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/qq_35812205/article/details/119078793
报错:ProxyError: Conda cannot proceed due to an error in your proxy configuration. 提示:Check for typos and other configuration errors in any ‘.netrc’ file in your home directory, any environment variables ending in ‘_PROXY’, and any other system-wide proxy
878 0
|
前端开发 JavaScript
uniapp真机调试文件查找失败:‘./pages/index/index.nvue?mpType=page‘; Error: Cannot find module ‘pages/ ———————————————— 版权声明:本文为CSDN博主「前端老实人」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_52691965/article/details/119241451
uniapp真机调试文件查找失败:‘./pages/index/index.nvue?mpType=page‘; Error: Cannot find module ‘pages/ ———————————————— 版权声明:本文为CSDN博主「前端老实人」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_52691965/article/details/119241451
|
数据安全/隐私保护
Mac Photoshop CC 2017 破解安装
Mac版ps 2007安装 并破解 资源文件: 链接:https://pan.baidu.com/s/1or3untVCvmAmUk9jOoUPqg 密码:aicd adobe补丁:https://pan.
2280 0