在centos 上用命令:
pip install fabric
安裝是會出現(xiàn)如下報錯,因為太多,我就不全部貼了,部分內(nèi)容如下:
src/MD2.c:31:20: 錯誤:Python.h:沒有那個文件或目錄src/MD2.c:131: 錯誤:expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘*' tokenIn file included from src/MD2.c:147:src/hash_template.c:48: 錯誤:expected specifier-qualifier-list before ‘PyObject_HEAD'src/hash_template.c:59: 錯誤:expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘PyTypeObject'src/hash_template.c: 在函數(shù)‘newALGobject'中:
出現(xiàn)這種問題是因為沒有python-devel包導(dǎo)致,直接安裝即可:
yum install python-devel
總結(jié)
以上就是這篇文章的全部內(nèi)容,希望對有需要的人能有所幫助,如果有疑問可以留言交流。
新聞熱點
疑難解答
圖片精選