Here I am explaining how to install virtualenv in Ubuntu. Virtualenv can be installed in two different ways
- Using Aptitude
Copy and paste the following command in the Terminal. Type the password for the user, when prompted.
sudo apt-get install python-virtualenv
Easy Install is a Python module and its a Python package manager which will let you download, install and manage packages for Python. By default this module is bundled with Python-setuptools.
To use easy_install, first you need to install Python-setuptools. Following commands will help you to install.
sudo apt-get install python-setuptools
After installing setuptools, you can install Python packages using easy_install.
sudo easy_install virtualenv
Thats it, Virtualenv is successfully installed and is ready to work with!