ubuntu安装python3.7过程中make test命令出错ModuleNotFoundError: No module named ‘_ctypes’

问题1:

ModuleNotFoundError: No module named ‘_ctypes’ 

ubuntu安装python3.7过程中make test命令出错ModuleNotFoundError: No module named ‘_ctypes’_第1张图片

解决:

1.sudo apt-get update

关于sudo apt-get update 出现fetch  ppa错误,请移步我的另一篇博客https://blog.csdn.net/u014775723/article/details/85224026

2.sudo apt-get upgrade

关于sudo apt-get upgrade相关错误:请移步我的另一篇博客:https://blog.csdn.net/u014775723/article/details/85224071

3.sudo apt-get dist-upgrade

4.sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus

5.sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev

6.sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev
7.sudo apt-get install libssl-dev openssl

8.sudo apt-get install libffi-dev

9.重复操作:

cd Python-3.7.1.tgz

./configure

make

make test

make install

 

你可能感兴趣的:(ububtu,python3.7)