python3.7 安装
下载安装
cd /usr/local
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
tar -xvf Python-3.7.2.tgz
cd Python-3.7.2
./configure --prefix=/usr/local/python3.7
make
make install
ln -s /usr/local/python3.7/bin/python3 /usr/bin/python3
出错处理
安装python make install ModuleNotFoundError: No module named ‘_ctypes’ 错误需要安装其他依赖
yum upgrade
yum dist-upgrade
yum install build-essential python-dev python-setuptools python-pip python-smbus
yum install build-essential libncursesw5-dev libgdbm-dev libc6-dev
yum install zlib1g-dev libsqlite3-dev tk-dev
yum install libssl-dev openssl
yum install libffi-dev
https://blog.lovexu.cc/archives/337