Installing Python 2.7.5 on Ubuntu
2014-05-16 10:52
513 查看
Recent versions of Ubuntu come with Python 2.7.3 pre-installed. You can see which version you have by typing the command
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:
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:
Once you have all required dependencies, please follow pyenv's installation instructions. Please ensure
to replace
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:
If you have done everything correctly, then typing
window should now produce the following output:
Reference:
http://heliumhq.com/docs/installing_python_2.7.5_on_ubuntu
pythoninto
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-dev sudo apt-get update sudo apt-get install sqlite3 libsqlite3-dev sudo apt-get install libssl-dev
Once you have all required dependencies, please follow pyenv's installation instructions. Please ensure
to replace
~/.bash_profileby
~/.bashrcin
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
pythoninto 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 on Ubuntu
- Installing Selenium and PhantomJS for Python 3 on Ubuntu 14.04
- Installing Python 2.7 on Ubuntu 10.04
- Installing OpenCV for Python on Ubuntu, getting ImportError: No module named cv2.cv
- Installing OpenCV for Python on Ubuntu, getting ImportError: No module named cv2.cv
- Installing Python 2.6 on Ubuntu 8.04
- 在AWS平台上的ubuntu系统中安装Geoserver(Installing a headless GeoServer on Ubuntu 10.4 on Amazon Web Services)
- Installing Altera Quartus 10 Web Edition on Ubuntu 10.04
- Installing Oracle 11g on Ubuntu 8.04 LTS (Hardy Heron)
- Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositories
- Installing Hudson on Debian and Ubuntu
- Experience installing Hbase 0.20.0 Cluster on Ubuntu 9.04 and EC2
- Simple Tutorial for installing Apache, PHP, MySQL and phpMyAdmin on Ubuntu
- New method for installing Python 2.6.4 (with mysql-python) on CentOS 5.5
- Installing LAMP On Ubuntu For Newbies
- Installing Redis on Ubuntu with APT
- Installing VirtualBox Guest Additions on ubuntu 11.04
- Ubuntu/Vistadual-boot(reference the the steps of installing Windows Vista on a computer which already have an Ubuntu installatio
- Installing vsftp on ubuntu 8.04
- Installing Resin using the .deb package on Ubuntu and Debian