作者:西门庆重生727 | 来源:互联网 | 2023-05-29 08:21
我正在CentOS 7中使用Python2.7部署flask应用程序。我在/projectname/utils/cython/helpers.pyx中创建了cython模块,当我使用python setup.py build_ext --inplace
对其进行编译然后运行使用flask run
命令的flask应用程序,但使用uWSGI sudo systemctl start projectname
运行它时出现以下错误。我检查了gcc并已安装
ImportError: Building module utils.cython.helpers failed: ["CompileError: command 'gcc' failed with exit status 1\n"]
unable to load app 0 (mountpoint='') (callable not found or import error)