Home > other >  No module named '_ctypes installed libffi - dev
No module named '_ctypes installed libffi - dev

Time:09-23



Appear this error:

ModuleNotFoundError: No module named '_ctypes'

On degrees, I installed the apt install libffi - dev

But still won't do,

What should I do this?

The system is: ubuntu 18.04

CodePudding user response:

Sudo apt to get the update
Sudo apt - get upgrade
Sudo apt - get dist - upgrade
Sudo apt - get the install build - essential python - dev python - setuptools python - PIP python - smbus
Sudo apt - get the install build - essential libncursesw5 - dev libgdbm - dev libc6 - dev
Sudo apt - get the install zlib1g - dev libsqlite3 - dev tk - dev
Sudo apt - get the install libssl - dev openssl
Sudo apt - get the install libffi - dev

CodePudding user response:

reference 1st floor kuangbao9 response:
sudo apt to get the update
Sudo apt - get upgrade
Sudo apt - get dist - upgrade
Sudo apt - get the install build - essential python - dev python - setuptools python - PIP python - smbus
Sudo apt - get the install build - essential libncursesw5 - dev libgdbm - dev libc6 - dev
Sudo apt - get the install zlib1g - dev libsqlite3 - dev tk - dev
Sudo apt - get the install libssl - dev openssl
Sudo apt - get the install libffi - dev

No, tried, is still the same error,

CodePudding user response:

This way I also not line!
  • Related