文章参考出处:https://www.cnblogs.com/luckyalan/p/6703590.html
ubuntu14.04
安装Python2.7:
1 //安装 Python 发布版本,dev包必须安装,很多用pip安装包都需要编译 2 sudo apt-get install python2.7 python2.7-dev
当然,我们也可以一起安装:
1 sudo apt-get install python2.7 python2.7-dev python3.2 python3.2-dev
4.1.2 安装build依赖包
1 //很多pip安装的包都需要libssl和libevent编译环境 2 sudo apt-get install build-essential libssl-dev libevent-dev libjpeg-dev libxml2-dev libxslt-dev
4.1.3 安装pip
pip是Python的包管理工具,建议Python的所有包都用pip进行管理,命令如下:
1 //安装 pip 2 sudo apt-get install python-pip
4.1.4安装python idle
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install idle-python2.7
到此处python及python编辑器的安装完毕.
python验证是否安装成功:
xy@xypc: python
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
xy@xypc:~$
IDE验证是否安装成功:
打开application->program->IDLE