ModuleNotFoundError: No module named ‘_ctypes’ on Raspberry Pi

  ctypes, modulenotfounderror, pip, python, raspberry-pi

I am new to the forums, and I need help in installing _ctypes on my Raspberry Pi. I am trying to install PyQt5 in python, but whenever I try to install it using pip using the command python3 -m pip install pyqt5, I have this error

ModuleNotFoundError: No module named ‘_ctypes’

I have looked at the other StackOverflow questions about installing
_ctypes but all of them talk about installing libffi-dev or libffi-devel, I have also tried installing them but it didn’t work for me.

Any ideas?

Source: Python Questions

LEAVE A COMMENT