錯(cuò)誤現(xiàn)象
在寫python代碼的時(shí)候,用到MySQL-python模塊,在執(zhí)行
pip install MySQL-python
一直不成功虑乖,最重要的報(bào)錯(cuò)信息是
command 'gcc' failed with exit status 1
錯(cuò)誤原因
經(jīng)過搜索揪漩,其實(shí)不是gcc的原因趟畏。只是缺少一個(gè)devel環(huán)境。
解決辦法
只需要看include缺什么就行删顶。比如我這里缺的是mysql-devel ,那么只需要執(zhí)行如下的語句就可以了。
yum install mysql-devel