Ubuntu_16.04 安装 Pyhon3.6

Ubuntu 16.04 默认装的是 Python3.5
??
方式一:
??sudo add-apt-repository ppa:jonathonf/python-3.6
??sudo apt-get update
??sudo apt-get install python3.6
??
方式二:??
??wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
??tar xf Python-3.6.5.tar.xz
??cd Python-3.6.5
??./configure --enable-optimizations
??
??sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
????????libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
??
??make && make install
??sudo make altinstall
??
改变链接??
??sudo rm /usr/bin/python3
??ln -s /usr/local/bin/python3.6 /usr/bin/python3
??
试了方式一装不了,方式二可以装,但改了链接后系统有些功能或程序会因为 Python 版本不对用不了
??
??



Ubuntu_16.04 安装 Pyhon3.6

上一篇:[SAP BASIS][shell] shell 实战之远程复制传输


下一篇:(原+转)Ubuntu中设置程序可用的cpu核心