安装python3步骤:
1、先解决依赖
# 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
2、wget Python3.6.3;创建程序目录;编译安装
# wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz # mkdir -p /usr/local/python3 # tar -zxvf Python-3.6.3.tgz # cd Python-3.6.3/ # ./configure --prefix=/usr/local/python3 && make && make install
安装第三方包paramiko
Centos python3安装paramiko出现error: command 'gcc' failed with exit status 1
由于缺失依赖包。执行: yum install gcc libffi-devel python-devel openssl-devel