As mentioned by @Akavall, at the moment you have installed a Python2.x pip and it is this pip that you are currently using to install packages when you run this command pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
. For you to install packages for Python3.x, you will need to install a Python3.x pip which is referenced as pip3. To install pip3, run the following command from your terminal:
sudo apt-get install python3-pip
Once pip3 has been installed, you can then install packages for your python3.x using:
pip3 install <module-name>
Note that you can still continue to run both Python2.x and Python3.x along side each other on the same machine, there is no need for you to uninstall python2.x.
You can continue to install packages for Python2.x as you have been doing, by using:
pip install <module-name>
and install packages for python3.x using:
pip3 install <module-name>
Lastly, to run Python3.x on your terminal you will need to type:
python3
as opposed to just python
(which refers to python2.x
). For example, if you have a script called Hello.py, to execute this script from the terminal using Python3.x you do the following:
python3.x Hello.py
to run the same script using Python2.x, you do the following:
python2.x Hello.py
or:
python Hello.py
So, in one sentence, pip
points to python2, whist pip3
points to python3. See this question for more information.
I hope that answers your question :). Once again, I'm just expanding on a good comment already given above by @Akavall, so credit goes to @Akavall.