I'm a bit confused about sudo apt-get install python-<package>
vs sudo pip install
vs pip install
. I have read many posts on the matter:
- What are the risks of running 'sudo pip'?,
- Is it acceptable & safe to run pip install under sudo?,
- apt-get install vs pip install
My specific problem is that I have numpy 1.10.2. I try to update it with pip install -U numpy
. It downloads 1.10.4, says it installs correctly, but when I do pip show numpy
it's still 1.10.2. I'm worried that I have lots of versions everywhere because I wasn't aware of the difference between the installation methods. Also, I probably installed numpy with sudo apt-get
, but then other scripts for other packages may have had scripts which pip install
or sudo pip install
. How can I see what's going on and how can I clean this up?
btw. which pip
returns
/usr/bin/pip
pip show numpy
returns
Name: numpy
Version: 1.10.2
Location: /home/memo/.local/lib/python2.7/site-packages
I'm getting the same problem with other packages such as SciPy.