Eryk Sun added the comment:

You installed Python for all users, which defaults to installing in 
%ProgramFiles% or %ProgramFiles(x86)%. Python's installation directory inherits 
the security of its parent directory, which in this case grants full control 
only to SYSTEM, TrustedInstaller, and Administrators. Standard users are 
granted only read and execute access. Thus if you're logged on as a standard 
user or UAC-restricted administrator, adding and removing packages requires 
running pip from an elevated command prompt (cmd.exe) that's "[r]un as 
administrator".

A per-user installation, on the other hand, defaults to installing in a 
subdirectory of the user's "%LocalAppData%\Programs" directory, for which the 
user should have full control.

In either case you can change the default installation directory. In general, I 
wouldn't recommend installing for all users to an untrusted location, but 
you're of course free to do that if you want.

----------
nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30531>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to