title: How to setup virtual environment for python(2.7, 3.5, 3.6) on Ubuntu16.04 LTS?
body: <p>I've read a lot of blog post about this and I'm still confused as to what is "best" way to set it up. Most of the blog posts I've read are out-dated. I'm new to Linux and have messed up my system twice now and still can't setup the virtual environments properly. According to what I've read, Virtualenv and Virtualenvwrapper combination is the most widely used setup. So, After a fresh Ubuntu 16.04 LTS install, I do the following:</p>
  
  <p>Install Python 3.6 as shown in the following link.<br>
  <a href="https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/" rel="noreferrer">https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/</a>
  <br>
  The current state of the system now is, <br>
  <code>$ python3.6 -V</code><br>
  <code>Python 3.6.4</code></p>
  
  <p><code>$ pip3.6 -V</code> <br>
  <code>pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)</code></p>
  
  <p>pip3 (python3.5) and pip(python2.7) do not come pre-installed. To install them , I do: <br>
  <code>$ sudo apt-get install python-pip</code> <br>
  <code>$ sudo apt-get install python3-pip</code></p>
  
  <p><code>$ which pip</code> <br>
  <code>/usr/bin/pip</code> <br><br>
  <code>$ which pip3</code> <br>
  <code>/usr/bin/pip3</code><br></p>
  
  <p>Now, the pip-version installed through apt-get method is old(version 8.1.1). We need to update it to (version 9.0.1). This is where it all goes wrong.<br>
  Question 1: How do I update the two different pip versions without breaking anything?</p>
  
  <p>Assume, both pip versions are upgraded to version 9.0.1 <br>
  Now, I have to install virtualenv and virtualenvwrapper.<br>
  Which pip version do I use to install it?</p>
  
  <p><code>$ pip install --user virtualenv</code>  and <code>$ pip install --user virtualenvwrapper</code>  <br>
  or
  <br>
  <code>$ pip3 install --user virtualenv</code>  and <code>$ pip3 install --user virtualenvwrapper</code></p>
  
  <p>ps: I'm following this link-<br>
  <a href="http://chrisstrelioff.ws/sandbox/2016/09/21/python_setup_on_ubuntu_16_04.html" rel="noreferrer">http://chrisstrelioff.ws/sandbox/2016/09/21/python_setup_on_ubuntu_16_04.html</a></p>