理想国真恵玩Python从入门到精通032Centos安装Python3.6

Python私教 2018-12-04 12:18:27

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

yum -y install wget

wget

tar -xvf Python-3.6.4.tgz

yum install gcc

mkdir /usr/local/python3

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

make

make install

mv /usr/bin/python /usr/bin/python_bak

ln -s /usr/local/python3/bin/python3 /usr/bin/python

python -V

vim ~/.bash_profile

# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then        . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/bin:/usr/local/python3/binexport PATH

source ~/.bash_profile

0 阅读:9

Python私教

简介:全栈工程师,目标人工智能.抖音同理想国真恵玩.