ubuntu python使用_如何在Ubuntu上下载和使用python?

I recently purchased a system 76 laptop, this is my first exposure to the ubuntu os. Terminal says that I currently have version 2.7.5+(im not sure what the plus means).

My first question is how do I actually use python on this computer since it does not come with idle and my second question is how do I download the newest version 3.3.4 which can be found here: http://python.org/download/releases/3.3.4/ ?

解决方案

To begin, open a console window.

To install Python 3:

sudo apt-get update

sudo apt-get -y install python3.3

To install IDLE:

sudo apt-get install idle3

Keep in mind that you can also open a terminal window and simply type python to be thrown into a python console. Python 3 may need to be forced with python3 if apt as decided not to overwrite your system's default 2.7.5 install.

There are also other environments similar to IDLE that can be a lot nicer to use. One such example is a plugin for the Sublime Text text editor called SublimeREPL (A REPL is a Read Evaluate Print Loop - essentially the interactive python prompt). These REPLs are available for many interpreted languages and can be very handy to have close by when you're writing code.

Here's what it looks like on my OSX install:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值