解決方案:Failed to build these modules: _ctypes

參考資料

Python安裝指南

錯誤提示信息

            Failed to build these modules:
_ctypes
        

解決方法

在編譯配置的時候加上--enable-shared。具體內容可以參考下面的示例。

            ./configure --enable-shared