Closed rhstanton closed 5 months ago
It's not really easydata-specific. The solution is
1) The sudo Anaconda installation creates a directory ~/.conda owned by root, so take ownership of this with
chown -R <username> ~/.conda
2) There are also permission issues with the system cached package files. The simplest thing is not to use them, by creating a file ~/.condarc containing the lines
pkgs_dirs:
- ~/.conda/pkgs
Now make create_environment
works fine.
First, thanks for writing this package!
On my Unix machine, I installed Anaconda in /opt/anaconda3 (world readable and executable) using sudo, so that multiple users would be able to use it.
To allow regular users to create environments, I next had to change some permissions using
sudo chown 501:20 /opt/anaconda3/pkgs/cache
So far so good. I can now run commands like
conda create -n testenv python=3.10
However, when I create an easydata project using
cookiecutter https://github.com/hackalog/easydata
and then runmake create_environment
, here's what happens. Any suggestions?