What is the purpose of the '--user' flag when installing Python packages using pip?
Correct answer
B. To install packages for the current user only
24 views
B. To install packages for the current user only
24 views
The '--user' flag in pip is used to install Python packages for the current user only, rather than globally for all users. This is useful when you do not have administrative privileges on the system or when you want to install packages without affecting other users or the system-wide Python installation.
Not sure why the answer is B? Ask here and get an explanation.