Installing Python and distribute on Windows 7 gives “Writing failed … permission denied”

前端 未结 2 1016
北恋
北恋 2021-01-23 01:11

I\'m on Windows 7 (which I fully admit I don\'t understand the permissions model of. I\'m reading about it in other tabs.) My user is an administrator. When I try to run \"

相关标签:
2条回答
  • 2021-01-23 02:03

    It seems that you have to use the "Run as administrator" option when opening the command prompt, because, as your wife says, "Windows is f****d". As you seem to also have discovered, turning off UAC is one way to avoid getting a UAC dialog when doing so.

    0 讨论(0)
  • 2021-01-23 02:03

    Explicitly granting "full control" to my own user for the whole system Python install directory and its subdirs makes easy_install work.

    However, this isn't completely satisfactory:

    • easy_install still produces the UAC dialog. I'd like to turn this off because easy_install is a program I trust
    • easy_install still fires up in a new cmd window which then disappears, so I can't examine the output if I need to (e.g. when it failed earlier)
    0 讨论(0)
提交回复
热议问题