We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4d92bb commit 42b1ef3Copy full SHA for 42b1ef3
src/pip/_internal/commands/install.py
@@ -647,7 +647,8 @@ def decide_user_install(
647
logger.debug("Non-user install because user site-packages disabled")
648
return False
649
650
- # If we don't have permission for a non-user install, choose a user install
+ # If we have permission for a non-user install, do that,
651
+ # otherwise do a user install.
652
if site_packages_writable(root=root_path, isolated=isolated_mode):
653
logger.debug("Non-user install because site-packages writeable")
654
0 commit comments