ubuntu安装python
ubuntu使用PPA的方式安装python
添加 PPA:
$sudo add-apt-repository ppa:fkrull/deadsnakes

$sudo apt-get update

安装 Python 3.5:
$sudo apt-get install python3.5

$sudo apt-get install python3.5-dev

$sudo apt-get install libncurses5-dev

安装完成后,在终端上输入python,验证是否安装成功,进入python后,python会显示Python的版本信息.
查看版本信息:
$python –version
查看Python安装路径:
$which python

浙公网安备 33010602011771号