ubuntu 装tensorflow出现 conda install ERROR missing write permission错误

Posted happystudyeveryday

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 装tensorflow出现 conda install ERROR missing write permission错误相关的知识,希望对你有一定的参考价值。

通过搜索tensorflow然后运行,例如:$ conda install --channel https://conda.anaconda.org/jjh_cio_testing tensorflow-gpu==1.3.0

报错:

CondaIOError: Missing write permissions in: /usr/local/anaconda3
#
# You don‘t appear to have the necessary permissions to install packages
# into the install area ‘/usr/local/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="/usr/local/anaconda3"

问题在于 anaconda所在文件夹只有root 才有权限,而 sudo 对于conda没用,解决方案是修改文件夹权限给当前用户

sudo chown -R usr foldername

比如我的用户名是 adrianna, anaconda 的安装目录是/usr/local/anaconda3:

adrianna@adrianna-ubuntu:~$ sudo chown -R adrianna /usr/local/anaconda3


参考文献:1.https://blog.csdn.net/u012223913/article/details/76532776

以上是关于ubuntu 装tensorflow出现 conda install ERROR missing write permission错误的主要内容,如果未能解决你的问题,请参考以下文章

tensorflow条件语句-tf.cond

unbuntu怎么安装tensorflow

新系统Ubuntu18.4以上深度工具合集安装(Nvidia+CUDA+Tensorflow+Caffe+Torch)

安装完所有东西后如何在Windows 10操作系统中安装tensorflow仍然出现错误

在linux/ubuntu上安装Tensorflow

TensorFlow安装及实例-(Ubuntu16.04.1 & Anaconda3)