python 3 安装

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz

tar -xvJf  Python-3.7.0.tar.xz

cd Python-3.7.0

./configure–prefix=/usr/local/python3

make && make install


【ModuleNotFoundError: No module named ‘_ctypes’ make: *** [install] Error 1】解决方式

  yum install libffi-devel -y

你可能感兴趣的:(python 3 安装)