Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with permissions when setting up conda environment on MacOS Monterey #186

Closed
oC-n opened this issue Jan 11, 2023 · 1 comment
Closed

Comments

@oC-n
Copy link
Contributor

oC-n commented Jan 11, 2023

Following the instructions here, conda env create -f environment.yml fails on MacOS 12.6.2 (and presumably any MacOS from 12.6 on), because all the contents of the anaconda3 directory have ownership set to root upon installation. That means conda env can't uninstall components as required, nor update the required json files.

I was able to get around this by running sudo chown 501:20 -R ~/anaconda3, then running the conda env command.

The environment was then set up successfully.

@oC-n
Copy link
Contributor Author

oC-n commented Jan 11, 2023

This problem was caused by installing Anaconda using sudo, as suggested here. I was able to uninstall it, then reinstall from command line without sudo this time, so I don't understand why it failed initially, but none of the problems with file ownership are present now.

@oC-n oC-n closed this as completed Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant