solution:Failed to build these modules: _ctypes
Reference
Python installation guideError 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