安装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 gcc* 2.安装步骤 [[email protected] ~]# cd /usr/local/src/ [[email protected] src]# wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz [[email protected] src]# tar -xf Python-3.6.5.tar.xz [[email protected] src]# cd Python-3.6.5 [[email protected] Python-3.6.5]# ./configure --prefix=/usr/local/python3 [[email protected] Python-3.6.5]# make && make install [[email protected] Python-3.6.5]# ln -s /usr/local/python3/bin/python3 /usr/bin/python3 [[email protected] Python-3.6.5]# ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 3.验证 [[email protected] Python-3.6.5]# python3 Python 3.6.5 (default,Jan 23 2019,03:09:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux Type "help","copyright","credits" or "license" for more information.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。