匿名用户python setup.py build 报错如下:
running build_ext
building 'yaml._yaml' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/yaml
gcc -pthread -fno-strict-aliasing -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 -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/python2.7 -c yaml/_yaml.c -o build/temp.linux-x86_64-2.7/yaml/_yaml.o
gcc: 错误:yaml/_yaml.c:没有那个文件或目录
gcc: 致命错误:没有输入文件
编译中断。
Error compiling module, falling back to pure Python
[root@gbase8c_3 PyYAML-5.4.1]# pwd
/soft/etcd+pg+patroni/patroni/py_packages/PyYAML-5.4.1
环境centos 7.9 python 2.7.5
墨值悬赏

评论
