This article will show the steps for installing Python on Ubuntu Operating System.

本文将显示在Ubuntu操作系统上安装Python的步骤。

I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS.

我已经使用Ubuntu操作系统8.10创建了一个虚拟机,并且此安装过程也适用于Ubuntu OS的升级版本。

For installing Python we need to download Python on our operating system and then install it.

为了安装Python,我们需要在操作系统上下载Python,然后再安装它。

Creating and installing Ubuntu on Oracle VirtualBox can be seen from my blog i.e. : http://slobaexpert.wordpress.com/2012/06/10/installing-ubuntu-on-oracle-vm/

可以从我的博客中看到在Oracle VirtualBox上创建和安装Ubuntu,即: http : //slobaexpert.wordpress.com/2012/06/10/installing-ubuntu-on-oracle-vm/

Below are the details steps for installation assuming that we have installed Ubuntu OS :

假设我们已经安装了Ubuntu OS,以下是安装的详细步骤:

Step 1) Open Ubuntu from Oracle VirtualBox (Note: we can also use VMware instead of Oracle VirtualBox):

步骤1)从Oracle VirtualBox打开Ubuntu(注意:我们也可以使用VMware代替Oracle VirtualBox):

Step 2) Navigate to 'Application' then click on  'Accessories' and finally open a new 'Terminal':

步骤2)导航到“应用程序”,然后单击“附件” ,最后打开一个新的“终端”

Step 3) Type 'sudo su' and keep it aside, so in the mean while we can download Python:

步骤3)输入'sudo su'并将其放在一边,因此在此期间我们可以下载Python:

Step 4) Open Mozilla Firefox and go to Python official web site i.e. http://python.org/:

步骤4)打开Mozilla Firefox,然后转到Python官方网站,即http://python.org/ :

Step 5) Navigate to Download tab and download Python :

步骤5)导航至“ 下载”选项卡并下载Python:

Download the latest version:

下载最新版本:

Once clicked on the link we will be asked to either open it or save it as like below:

单击链接后,我们将被要求打开或保存它,如下所示:

Click 'OK' :

点击“确定”

Step 6) Go to your desktop and extract the file there(you can also choose your own folder or path where you want to extract but here I am extracting it on the desktop ):

第6步)转到您的桌面并在其中解压缩文件(您也可以选择要提取的文件夹或路径,但在这里我将其解压缩到桌面上):

Step 7)  Now go to the terminal opened earlier and go to the desktop path where Python file is been extracted:

步骤7)现在转到先前打开的终端,然后转到提取Python文件的桌面路径:

Step 8) Then type './configure' and hit enter:

步骤8)然后输入'./configure'并按Enter:

Step 9) Type 'make' and hit enter:

步骤9)输入“ make”,然后按Enter:

Step 10) Now finally type 'sudo make altinstall' and hit enter:

步骤10)现在,最后输入'sudo make altinstall'并按Enter键:

Step 11) Let us verify if the installation is done successfully or not, for doing this open another 'Terminal' and type 'python' and hit enter:

步骤11)让我们验证安装是否成功完成,为此打开另一个“ Terminal”并键入“ python”并按Enter:

Finally we can see that we have installed Python on Ubuntu operating system. Let us write a simple program to print 'Hello Sloba' :

最后,我们可以看到我们已经在Ubuntu操作系统上安装了Python。 让我们编写一个简单的程序来打印“ Hello Sloba”

To exit from Python we can type 'exit()' as like below:

要退出Python,我们可以像下面这样键入'exit()':

Now starting programming in Python on Ubuntu operating system.

现在开始在Ubuntu操作系统上使用Python进行编程。

翻译自: https://www.experts-exchange.com/articles/10515/Installing-Python-on-Ubuntu-Operating-System.html

在Ubuntu操作系统上安装Python相关推荐

  1. 在Windows操作系统上安装Python 2.7.3版本

    Installing Python 2.7.3 version on Windows operating system 在Windows操作系统上安装Python 2.7.3版本 For instal ...

  2. 在不同操作系统上安装Python的详细教程

    Windows 打开Python官方网站(https://www.python.org/downloads/)并下载最新版本的Python. 选择适合您操作系统的版本.如果您使用的是64位的Windo ...

  3. macos安装python3.6_在CentOS 7/Ubuntu 16.04/Debian 9/macOS上安装Python 3.6的方法

    本文介绍在CentOS 7/Ubuntu 16.04/Debian 9/macOS操作系统上安装Python 3.6的方法,包括使用Python 3.6创建virtualenv,目前大多数Linux发 ...

  4. python 3.6.0.tgz,如何在Ubuntu和LinuxMint上安装Python 3.6.0

    Python 3.6.0是在编写教程时的最新稳定版本. 此Python版本可供下载和安装. 本文将帮助您在Ubuntu和Linuxmint操作系统上安装Python 3.6.0. 要了解这个版本的更多 ...

  5. linux上安装python、igraph源码包_linux ubuntu 安装/卸载/删除python-igraph方法

    如何在Ubuntu 16.10上安装python-igraph? 首先使用以下命令更新系统: sudo add-apt-repository ppa:igraph/ppa # Add the Laun ...

  6. 数据挖掘基础学习一:VMware虚拟机Ubuntu上安装Python和IPython Notebook(Jupyter Notebook)完整步骤及需要注意的问题(以ubuntu-18.04.3为例)

    数据挖掘基础学习一:VMware虚拟机Ubuntu上安装Python和IPython Notebook(Jupyter Notebook)完整步骤及需要注意的问题 (以ubuntu-18.04.3-d ...

  7. ubuntu安装python百度经验_如何在Ubuntu 20.04上安装Python 3.9(含python编译安装和使用Apt命令安装)...

    在本文中,我们将向您展示在Ubuntu 20.04上安装Python 3.9的两种方法.第一种使用APT命令安装Python3.9,第二种是在Ubuntu20.04上编译安装Python 3.9.本教 ...

  8. ubuntu安装python3.8_在Ubuntu 18.04系统上安装Python 3.8的两种方法

    本文介绍在Ubuntu 18.04/16.04系统上安装Python 3.8的两种不同方法,第一个选择是从Deadsnakes PPA安装deb软件包,第二个选择是从源代码构建,当前Python 3. ...

  9. 无网络服务器(linux ubuntu),pip安装python科学计算所有需要包(packages)

    无网络服务器(linux ubuntu),pip安装python科学计算所有需要包(packages) # 在windows上打开anaconda,进入环境tab页,在base环境处单击,然后点开te ...

最新文章

  1. 自动驾驶系统为何要打上「思想钢印」?北京顺义闹市区里藏着毫末智行的谜底...
  2. 校运动会c语言程序编写,校运动会管理系统报告C语言(含完整代码)
  3. SpringBoot核心原理:自动配置、事件驱动、Condition
  4. Rocket - config - DefaultConfig
  5. CentOS connect:fail, reason: connect server 22 port fail
  6. cmd创建一个用户并升级成管理员
  7. 一个简单的python小游戏
  8. 杨校老师课堂之Hadoop环境搭建(一)
  9. jspstudy oracle,SQL不走索引的几种常见情况
  10. 数字转为大写金额(C#)
  11. java 多语言_JAVA实现多语言
  12. 【项目实训】微信公众号获取用户openid
  13. linux arm小主机,超级迷你!采用ARM处理器的电脑主板
  14. 算法分析课设(四)采用分治法求树中任意两点之间距离小于K的点对及路径
  15. 【网络安全态势感知学习笔记】——“行远自迩”基础篇一:网络安全态势感知的基本概念
  16. 微信大改版,不止炸群、放烟花,这些有趣功能你也需要了解下
  17. mongodb journal
  18. PyQt5(一)简介
  19. AJAX技术学院风连衣裙,超有少女感的穿搭,这5款学院风连衣裙开学穿上秒变校园女神!...
  20. 【性能监控】计算 FMP(First Meaningful Paint)

热门文章

  1. the lenght of int
  2. BUFF80双模蓝牙5.2热插拔PCB
  3. C语言精心总结(附有博客)
  4. vivado:解读xdc约束文件
  5. element 表格 最后一行合计。 合并单元格方法
  6. mixin java_Mixin模式
  7. docker容器找到挂载的目录,以及服务器对应物理地址
  8. winform界面嵌入dwg图纸_AutoCAD .NET 二次开发实例(6) winform交互界面(一)
  9. ETH 浏览器搭建(docker部署Blockscout)
  10. ACM第二站——2018年第九届山东省省赛