在我的ubuntu服务器上运行conda install作为管理员,我得到"缺少写权限:/ home/ubuntu/anaconda3"

Pou*_*efi 2 python-3.x anaconda conda ubuntu-14.04

我在我的ubuntu服务器上安装了Anaconda3.当我尝试使用conda安装或升级任何软件包时,例如:

conda install numpy=1.11.0
Run Code Online (Sandbox Code Playgroud)

(当然你不能做"sudo conda")

我收到以下错误:

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
Run Code Online (Sandbox Code Playgroud)

Pou*_*efi 8

正如@cel指出的那样,提供正确的权限就是必要的:

sudo chown -R ubuntu /home/ubuntu/anaconda3 
sudo chmod -R +x /home/ubuntu/anaconda3
Run Code Online (Sandbox Code Playgroud)