Installing a module to import modules

I am trying to install matplotlib and scipy on python and use pip for this. However, when I tried to install scipy with pip install scipy --myuser, I received a message:

invalid requirement '--myuser'

I used to install numpy using pip with

python get-pip.py —myuser

and

pip install numpy —myuser

This worked perfectly, so I'm not sure if the problem is here.

This is frustrating since I would like to use python from the terminal, and not from my Windows desktop.

+4
source share
3 answers

You can install it without using the --myuser argument.

sudo python3 -m pip install scipy
sudo python3 -m pip install matplotlib

or all in one

sudo python3 -m pip install scipy matplotlib
+2
source

If you want to install the user, try the following command:

pip install --user scipy

Here is the help of the pip command:

pip install --help

  --user                      Install to the Python user install directory for
                              your platform. Typically ~/.local/, or
                              %APPDATA%\Python on Windows. (See the Python
                              documentation for site.USER_BASE for full
                              details.)
+2
source

:

sudo python3 -m pip install scipy matplotlib

0

Source: https://habr.com/ru/post/1691693/


All Articles