0

Even though I have admin rights, I continue getting permission denied errors when writing to the files inside my chocolatey python installation. Why, how can I fix that?

  PermissionError: [WinError 5] Access is denied: 'c:\\tools\\python\\lib\\site-packages\\pip-6.0.8.dist-info\\description.rst'
kutschkem
  • 7,826
  • 3
  • 21
  • 56

1 Answers1

2

Somehow the SYSTEM user was assigned owner of the folder, and permissions were set in a way that prevented access, changing of the permissions, etc.

The solution was to reassign ownership of the folders to the Administrators group/user/whatever. Then I was able to change things. Weird Windows world of permissions.

kutschkem
  • 7,826
  • 3
  • 21
  • 56
  • How did you run the install? Was it with Puppet/Chef/Boxstarter? It seems that if done as your own user, you would have had permissions. :/ – ferventcoder May 20 '15 at 16:46
  • @ferventcoder with chocolatey, as stated in the question, locally under my own user – kutschkem May 20 '15 at 18:18
  • The question doesn't actually state how you performed the install, thus my comment for clarification. You can use Chocolatey on the command line, but you can also use Chocolatey with a number of tools (like Puppet / Chef / Boxstarter). Some of those tools run as services or do PowerShell remoting, and in both cases usually operate as LocalSystem, which would make sense for the reason it was set to SYSTEM user. – ferventcoder May 20 '15 at 19:07
  • This seems like it's possibly an issue on the python install? I would perhaps follow up on the package page in the disqus thread. Since I'm not sure which of the python packages you installed, I can't really give you a link. :) – ferventcoder May 20 '15 at 19:08