首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >python应用程序依赖关系快速器

python应用程序依赖关系快速器
EN

Stack Overflow用户
提问于 2020-06-18 11:04:58
回答 1查看 348关注 0票数 0

试图在LinuxDiil7.8上安装package fastavro==0.23.4,但是得到了错误:

代码语言:javascript
复制
    creating build/temp.linux-x86_64-3.6/fastavro
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c fastavro/_read.c -o build/temp.linux-x86_64-3.6/fastavro/_read.o
    fastavro/_read.c:4:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-p3u2ii2c/fastavro/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-57h05ysx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-p3u2ii2c/fastavro/

我已经有了python3开发包:

代码语言:javascript
复制
yum list installed|grep -i devel|grep -i python
python-devel.x86_64             2.7.5-88.el7       @rhui-rhel-7-server-rhui-rpms
rh-python36-python-devel.x86_64 3.6.9-2.el7        @rhui-rhel-server-rhui-rhscl-7-rpms
rh-python38-python-devel.x86_64 3.8.0-15.el7       @rhui-rhel-server-rhui-rhscl-7-rpms

我怎么解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-06-22 13:24:38

通过手动下载软件包修正了这个问题:"python3-devel-3.6.8-13.el7.x86_64.rpm“放在我的流变机上,使用yum安装,然后再次运行pyhton3 pip安装。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62448528

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档