我正在尝试将django项目添加到Jenkins,但是构建失败并出现以下错误:
_mysql.c:37:20:致命错误:Python.h:没有此类文件或目录
编译终止。错误:命令“ x86_64-linux-gnu-gcc”失败 退出状态为1
构建步骤包含:
#!/bin/bash
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev
virtualenv -p /usr/bin/python3.6 protogenvenv
source protogenvenv/bin/activate
pip install -U wheel
pip install -r requiremenst.txt
python manage.py jenkins --enable-coverage