【 Solutions 】解決 Python3: ModuleNotFoundError: No module named '_ctypes'

【 Solutions 】解決 Python3: ModuleNotFoundError: No module named '_ctypes'

問題

Python3 安裝套件出現下方訊息

from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
make: *** [Makefile:1132: install] Error 1

解決方案

Ubuntu 環境

  • 請在終端機輸入下方指令
    sudo apt-get install libffi-dev
    

GitHub

List of blogs