Installing Python 2.7.5 on Ubuntu
来源:互联网 发布:php api接口管理系统 编辑:程序博客网 时间:2024/06/11 02:02
Recent versions of Ubuntu come with Python 2.7.3 pre-installed. You can see which version you have by typing the commandpython
into your terminal. If you have version 2.7.3 then you will see the following output:
It is not really possible to uninstall Python 2.7.3 on Ubuntu, because so many of its applications depend on it. Instead, one needs to use an open source tool called pyenv, which makes it possible to manage multiple parallel Python installations.
To install pyenv, you need Git installed on your system. If you don't have it or are unsure whether you do, please install it using the following command in the terminal:
sudo apt-get install git
Before you can install pyenv, you need several dependencies. The following commands have been verified to properly set up your system on a newly installed Ubuntu 12.04.3:
sudo apt-get install make build-essential zlib1g-dev libbz2-dev libreadline-devsudo apt-get updatesudo apt-get install sqlite3 libsqlite3-devsudo apt-get install libssl-dev
Once you have all required dependencies, please follow pyenv's installation instructions. Please ensure to replace~/.bash_profile
by ~/.bashrc
in steps 2 and 3, since you are on Ubuntu.
Finally, you need to configure pyenv to use Python 2.7.5 on your system. This can be done via the command:
pyenv global 2.7.5
If you have done everything correctly, then typing python
into the terminal window should now produce the following output:
Reference:
http://heliumhq.com/docs/installing_python_2.7.5_on_ubuntu
- Installing Python 2.7.5 on Ubuntu
- Installing Python 2.7 on Ubuntu
- Installing Python 2.7 on Ubuntu 10.04
- Installing Python 2.6 on Ubuntu 8.04
- Installing MapServer on Ubuntu
- installing chkconfig on ubuntu
- Installing Jenkins on Ubuntu
- Installing Selenium and PhantomJS for Python 3 on Ubuntu 14.04
- Installing vsftp on ubuntu 8.04
- Installing Aptana on Ubuntu 8.04
- Installing Nemesis on Ubuntu 10.04
- Installing Tomcat 6 on Ubuntu
- Installing Plone 4 on Ubuntu
- Installing Cuda on Ubuntu 11.10
- Installing PostGIS 2.0 on ubuntu
- Installing webrtc2sip on Ubuntu 12.04
- Installing OrangeHRM On Ubuntu 12.04
- Installing Java 7 on Ubuntu
- vi 常用命令
- ECSHOP商品属性调用到任意页面方法
- LeetCode 015 3Sum
- python 包管理系统
- 帮你理解网关、ARP、IP、MAC、路由
- Installing Python 2.7.5 on Ubuntu
- 【STL】算法 — sort
- 决策树
- [Unity3D]面试题集锦
- Linux下实时查看Tomcat运行状况
- [转]Berkeley DB简介及安装使用
- linux下IPTABLES配置详解
- Java实现数字转化成字符串左边自动补零方法(流水号)
- oracle最常用简单函数