Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running conda install as an admin on my ubuntu server, I get "Missing write permissions: /home/ubuntu/anaconda3"

I have installed Anaconda3 on my ubuntu server. When I attempt to install or upgrade any package using conda, for example:

conda install numpy=1.11.0

(of course you cannot do "sudo conda")

I receive the following error:

Error: Missing write permissions in: /home/ubuntu/anaconda3
#
# You don't appear to have the necessary permissions to install packages
# into the install area '/home/ubuntu/anaconda3'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_root --clone=/home/ubuntu/anaconda3
like image 992
Pouya Yousefi Avatar asked Jan 07 '23 06:01

Pouya Yousefi


1 Answers

As @cel pointed out, providing the correct permissions is all that is necessary:

sudo chown -R ubuntu /home/ubuntu/anaconda3 
sudo chmod -R +x /home/ubuntu/anaconda3
like image 63
Pouya Yousefi Avatar answered Feb 16 '23 03:02

Pouya Yousefi