solution:Failed to build these modules: _ctypes

Reference

Python installation guide

Error message

            Failed to build these modules:
_ctypes
        

Solution

Add --enable-shared when compiling the configuration. The specific content can refer to the following example.

            ./configure --enable-shared