title: Unable to pip install packages in Anaconda
body: <p>Just downloaded and installed anaconda 3.6.2 on Mac OSX Mavericks and I need to install a package <code>seaborn</code> which is not pre-installed with anaconda.</p>
  
  <pre><code>$ conda install seaborn
  Fetching package metadata: ..
  Error: No packages found in current osx-64 channels matching: seaborn
  
  You can search for this package on Binstar with
  
      binstar search -t conda seaborn
  
  You may need to install the Binstar command line client with
  
      conda install binstar
  </code></pre>
  
  <p>Next I tried to use <code>pip</code> to install the package</p>
  
  <pre><code>$ which pip
  /Users/username/anaconda/bin/pip
  
  $ pip install seaborn
  Could not find an activated virtualenv (required).
  </code></pre>
  
  <p>Tried activating <code>root</code> Anaconda env again, but still does not work</p>
  
  <pre><code>$ source activate root
  discarding /Users/username/anaconda/bin from PATH
  prepending /Users/username/anaconda/bin to PATH
  
  $ pip install seaborn
  Could not find an activated virtualenv (required).
  </code></pre>
  
  <p>Next I tried activating a virualenv and <code>pip install</code> works.</p>
  
  <pre><code>workon testEnv
  pip install seaborn
  </code></pre>
  
  <p>Now I launched <code>iPython notebook</code> from Anaconda's launcher. But the <code>seaborn</code> package does not seem to be found!</p>
  
  <p>Was the <code>seaborn</code> package really installed?</p>
  
  <p><img src="https://i.stack.imgur.com/Vyy6l.png" alt="enter image description here"></p>
  
  <p>In <code>~/bashprofile</code>, I have:</p>
  
  <pre><code># virutalenvwrapper
  export WORKON_HOME=$HOME/.virtualenvs
  source /Users/username/.virtualenvs/datasci/bin/virtualenvwrapper.sh
  
  # added by Anaconda 2.0.1 installer
  export PATH="/Users/username/anaconda/bin:$PATH"
  </code></pre>
  
  <hr>
  
  <h2>Update</h2>
  
  <p>Removed the 2 virtualenvwrapper lines, reloaded .bash_profile, but <code>pip install</code> still gives the error <code>Could not find an activated virtualenv (required).</code> Activating another conda environment <code>source activate testenv</code> does not help.</p>
  
  <pre><code>$ source activate ~/.bash_profile
  $ pip install seaborn
  Could not find an activated virtualenv (required).
  
  $ source activate testenv
  discarding /Users/username/anaconda/bin from PATH
  prepending /Users/username/anaconda/envs/testenv/bin to PATH
  $ pip install seaborn
  Could not find an activated virtualenv (required).
  </code></pre>