title: How to install Python libraries under specific environments
body: <p>I have two Anaconda installations on my computer. The first one is based on Python 2.7 and the other is based on Python 3.4. The default Python version is the 3.4 though. What is more, I can start Python 3.4 either by typing <strong>/home/eualin/.bin/anaconda3/bin/python</strong> or just <strong>python</strong>. I can do the same but for Python 2.7 by typing <strong>/home/eualin/.bin/anaconda2/bin/python</strong>. My problem is that I don't know how to install new libraries under certain environments (either under Python 2.7 or Python 3.4). For example, when I do pip install seaborn the library gets installed under Python 3.4 by default when in fact I want to install it under Python 2.7. Any ideas?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This is what I am doing so far: the ~/.bashrc file contains the following two blocks, of which only one is enabled at any given time.</p>
  
  <pre><code># added by Anaconda 2.1.0 installer
  export PATH="/home/eualin/.bin/anaconda2/bin:$PATH"
  
  # added by Anaconda3 2.1.0 installer
  #export PATH="/home/eualin/.bin/anaconda3/bin:$PATH"
  </code></pre>
  
  <p>Depending of which version I want to work, I open the fie, comment the opposite block and do <code>source ~/.bashrc</code> Then, I install the libraries I want to use one by one. But, is this the recommended way?</p>