ubuntu16.10安装最新的python3.6.3

来源:转载

sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev


wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
tar xzf Python-3.6.3.tgz
./configure --enable-optimizations


不覆盖默认的python3文件 make; make altinstall
覆盖默认的python3文件 make; make install

分享给朋友:
您可能感兴趣的文章:
随机阅读: