How do I run Anaconda prompt with administrator privileges?

Issue

I’m new to python, Anaconda, and programming in general. My OS is Windows 10. I recently installed Anaconda3 to get Python, but mostly to install a package via conda-forge. My problem starts when I execute the command:

conda install -c conda-forge x

With x being the package I want to install.
When I do, at some point I get this error:

EnvironmentNotWritableError: The current user does not have write permissions to the target environment. environment location: C:\ProgramData\Anaconda3

I’m pretty sure my problem solves quite easily if I run the anaconda prompt with administrator privileges, but I run it using the “Anaconda Navigator”, so I don’t know if running the navigator as an administrator and then launching the prompt from there would solve my problem…is there another option?

I would really appreciate any information about this, because it may solve my problem and also teach me something about the conda environment.

Solution

Go to C:\ProgramData\Anaconda3, press and hold or right-click the folder, and then tap or click Properties. Tap or click the Security tab. Under Group or user names, tap or click your name to see the permissions that you have. Tap or click Edit, tap or click your name, select the check boxes for the permissions that you must have, and then click OK. Ensure you apply changes to sub folders.

Answered By – Sola Oshinowo

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published