简体   繁体   English

在Ubuntu 14.04上安装python2.7

[英]Install python2.7 on Ubuntu 14.04

How can I install python2.7 on Ubuntu 14.04 and make the system's default python the python I installed? 如何在Ubuntu 14.04上安装python2.7并将系统的默认python设置为我安装的python?

How can I install packages like numpy, scipy and so on in the python I installed? 如何在安装的python中安装numpy,scipy等软件包? I don't know how to set these settings. 我不知道如何设置这些设置。

As Selcuk and warmoverflow said, both versions of python , python 2.x and 3.x comes already installed on ubuntu. 正如Selcuk和warmoverflow所说,ubuntu上已经安装了python,python 2.x和3.x两个版本。 However if you want to upgrade your python version, say python 2.7.6 to python 2.7.11 or so, you can upgrade it by downloading the latest version and building it from source. 但是,如果要升级python版本,例如将python 2.7.6升级到python 2.7.11,则可以通过下载最新版本并从源代码构建它来进行升级。

Here is a good tutorial for that : Tutorial 1 Tutorial 2 这是一个很好的教程: 教程1 教程2

You can also search on internet for the same. 您也可以在互联网上搜索相同内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM