python 应用程序依赖 fastavro
python application dependency fastavro
正在尝试在 linux rhel 7.8 上安装 pip 包 fastavro==0.23.4 但出现错误:
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 个开发包:
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
我该如何解决这个问题?
通过在我的 rhel 机器上手动下载软件包“python3-devel-3.6.8-13.el7.x86_64.rpm”解决了这个问题,使用 yum 和 [=14= 安装它] 再次安装pyhton3 pip
正在尝试在 linux rhel 7.8 上安装 pip 包 fastavro==0.23.4 但出现错误:
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 个开发包:
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
我该如何解决这个问题?
通过在我的 rhel 机器上手动下载软件包“python3-devel-3.6.8-13.el7.x86_64.rpm”解决了这个问题,使用 yum 和 [=14= 安装它] 再次安装pyhton3 pip