Posting warning message

T Berger brgrt2 at gmail.com
Tue Jun 12 09:50:25 EDT 2018


On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote:
> 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

Thanks, Greg, for your answer. It helped me out of that hole.



More information about the Python-list mailing list