其他分享
首页 > 其他分享> > ModuleNotFoundError: No module named ‘_ctypes’

ModuleNotFoundError: No module named ‘_ctypes’

作者:互联网

在ubuntu 18.04上安装python 3.7在make install时提示错误:ModuleNotFoundError: No module named ‘_ctypes’

解决方案用apt更新、安装相关库文件:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus
sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev
sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev
sudo apt-get install libssl-dev openssl
sudo apt-get install libffi-dev

标签:named,get,python,sudo,apt,ctypes,dev,install,ModuleNotFoundError
来源: https://www.cnblogs.com/canwyq/p/14877887.html