1. 程式人生 > >ubantu安裝mysql-python==1.2.5失敗解決

ubantu安裝mysql-python==1.2.5失敗解決

pip install mysql-python報錯

 Failed building wheel for mysql-python

 Running setup.py clean for mysql-python

Failed to build mysql-python

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

無法安裝MySQLdb模組

此為開發包不全導致

sudo apt-get install python-dev

pip install mysql-python==1.2.5