天天看點

ubuntu12.04桌面版安裝python子產品常見問題

1、緻命錯誤:Python.h:沒有那個檔案或目錄

        解決方法是安裝python-dev,這是Python的頭檔案和靜态庫包。執行sudo apt-get install python-dev即可。

2、EnvironmentError: mysql_config not found

        很明顯錯誤是指沒有mysql_config這個檔案。執行sudo find / -name mysql_config,沒有任何資料,表明系統中沒有mysql_config這個檔案。有人解釋說使用apt-get安裝的MySQL是沒有mysql_config這個檔案的。解決辦法:執行sudo apt-get install libmysqld-dev即可。

3、緻命錯誤: libxml/xmlversion.h:沒有那個檔案或目錄

        解決辦法: 執行sudo apt-get install libxml2 libxml2-dev libxslt-dev即可。

4、The required version of distribute (>=0.6.28) is not available, and can't be installed while this script is running. Please install a more recent version first, using 'easy_install -U distribute'.

        解決辦法:執行sudo easy_install -U distribute即可。