1、sudo apt-get update
2、sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libr髫潋啜缅eadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev
3、Download Python Source Codetar xf Python-3.6.4.tar.xz cd Python-3.6.4
4、./configure –-with-sslmakesudo make install
5、需不需要创建软链接看具体需求吧su蟠校盯昂do rm /usr/bin/python3sudo ln -s /usr/local/bin/python3.6 /usr/bin/python3sudo ln -s /usr/local/bin/pip3.6 /usr/bin/pip3.6