What does the -m flag do in python -m pip install requests?
Correct answer
D. Runs a library module as a script
6 views
D. Runs a library module as a script
6 views
python -m pip makes sure pip belongs to that interpreter.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is D? Ask here and get an explanation.