Tamara Berger wrote:
I typed these 2 lines in the terminal:
192:~ TamaraB$ sudo python3
> ...
python3 -m pip install pytest
You need to enter this *single* line in the Terminal:
sudo python3 -m pip install pytest
What does the "-m" stand for in the line of code?
It's a cmmand-line option to the python interpreter
telling it to execute a module.
(What you did was first launch the Python interpreter and
then tell it to run "python3 -m pip install pytest" as a
Python statement. But it's not Python code, it's a shell
command.)
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list