码迷,mamicode.com
首页 > 编程语言 > 详细

Ubuntu中安装Python

时间:2015-05-04 12:03:01      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:python   ubuntu   

在Ubuntu下安装Python模块通常可以使用apt-get和pip命令。apt-get命令是Ubuntu自带的包管理命令,而pip则是Python安装扩展模块的工具,通常pip会下载扩展模块的源代码并编译安装。

Ubuntu 12.04中缺省安装了Python2.7.3,首先通过下面的命令安装pip,pip是Python的一个安装和管理扩展库的工具。

sudo apt-get install python-pip

安装Python开发环境,方便今后编译其他扩展库,占用空间92.8M:

sudo apt-get install python-dev

Ubuntu中安装Python

标签:python   ubuntu   

原文地址:http://blog.csdn.net/djd1234567/article/details/45477379

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!