How to install Virtualenv in Linux

Virtualenv: Virtual Python Environment builder

Here I am explaining how to install virtualenv in Ubuntu. Virtualenv can be installed in two different ways

  • Using Aptitude
  • EasyInstall


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!

  • Hey. What’s this virtualenv?

    • VirtualEnv = Virtual Environment.
      It manages applications that require different versions of the same library.
      In laymen’s terms suppose if Software 1 needs version 1 of a library file and software 2 needs version 1.5 ,then using this you can run both the softwares by switching between the libraries.

  • Pingback: Howto Install Django in Ubuntu 13.04 / 12.10 / Fedora 18()