/ Ubuntu

【 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
Archer

Archer

Having being a software engineer. Experience with Python, JavaScript, Node.js, Objective-C, Micro:bit, Raspberry Pi, AWS, Azure, IoT. ❆ [email protected] https://oranwind.org/author/archer/

Read More