如何安装 Python?

fat*_*ima 4 python

我是 ubuntu 的新手,将专注于机器学习。任何人都可以提供有关在我的系统上安装 python 的分步指南吗?

Anw*_*war 7

Python 默认安装在 Ubuntu 中。通过按Ctrl- Alt-T快捷方式打开终端并键入python以进入其交互式 shell。你不需要安装任何东西。

python shell 看起来像这样:(版本号不匹配,因为我在 12.04)

Python 2.7.3 (default, Aug  1 2012, 05:16:07) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
Run Code Online (Sandbox Code Playgroud)

  • 我建议使用 `ipython` 而不是 `python` 作为交互式 shell。 (2认同)