0

I have noticed that any package I install using pip gets installed in the default Python directory and not anaconda and this is very troubling. I tried to edit the PATH variable in my system using :

export PATH=/home/karen/anaconda3/bin:$PATH

The only thing I achived with this was that when I type python it starts anaconda (before, that command in the terminal just started the default python). So when I uninstall anaconda I can access the libraries I installed using pip in default python. So how can I fix this problem?

I'm using Ubuntu 15.10.

Dimitris Fasarakis Hilliard
  • 150,925
  • 31
  • 268
  • 253
karen_turing
  • 39
  • 10
  • Possible duplicate of [How to keep track of pip installed packages in an Anaconda (conda) env?](http://stackoverflow.com/questions/18640305/how-to-keep-track-of-pip-installed-packages-in-an-anaconda-conda-env) –  Jan 16 '16 at 17:59
  • what's returned by running `pip -V`? – Dimitris Fasarakis Hilliard Jan 16 '16 at 17:59

1 Answers1

0

If my guess is correct which pip will return the system installed pip, not the one in /home/karen/anaconda3/bin. If this is the case, then you can fix your issue with conda install pip. Then pip install <some package> will dump <some package> in to /home/karen/anaconda3/lib/pythonX.X/site-packages/<some package>

Eric Dill
  • 2,166
  • 2
  • 17
  • 15