close

[Solved] Python3: Import: No module named ‘_ctypes’ when using Value from module multiprocessing

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Python3: Import: No module named ‘_ctypes’ when using Value from module multiprocessing in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Python3: Import: No module named ‘_ctypes’ when using Value from module multiprocessing Error Occurs?

Today I get the following error Python3: Import: No module named ‘_ctypes’ when using Value from module multiprocessing in python.

How To Solve Python3: Import: No module named ‘_ctypes’ when using Value from module multiprocessing Error ?

  1. How To Solve Python3: Import: No module named '_ctypes' when using Value from module multiprocessing Error ?

    To Solve Python3: Import: No module named '_ctypes' when using Value from module multiprocessing Error If you use pyenv and get error “No module named '_ctypes'” (like i am) on Debian/Raspbian/Ubuntu you need to run this commands:

  2. Python3: Import: No module named '_ctypes' when using Value from module multiprocessing

    To Solve Python3: Import: No module named '_ctypes' when using Value from module multiprocessing Error If you use pyenv and get error “No module named '_ctypes'” (like i am) on Debian/Raspbian/Ubuntu you need to run this commands:

Solution 1

Installing libffi-dev and re-installing python3.7 fixed the problem for me.

to cleanly build py 3.7 libffi-dev is required or else later stuff will fail

If using RHEL/Fedora:

yum install libffi-devel

or

sudo dnf install libffi-devel

If using Debian/Ubuntu:

sudo apt-get install libffi-dev

Solution 2

If you use pyenv and get error “No module named ‘_ctypes'” (like i am) on Debian/Raspbian/Ubuntu you need to run this commands:

sudo apt-get install libffi-dev
pyenv uninstall 3.7.6
pyenv install 3.7.6

Put your version of python instead of 3.7.6

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read