Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 康达;解决环境:失败“;Linux CentOS 7上的错误_Python_Anaconda_Environment_Conda_Miniconda - Fatal编程技术网

Python 康达;解决环境:失败“;Linux CentOS 7上的错误

Python 康达;解决环境:失败“;Linux CentOS 7上的错误,python,anaconda,environment,conda,miniconda,Python,Anaconda,Environment,Conda,Miniconda,我在运行Linux CentOS 7的笔记本电脑上安装了Conda-through 如果运行命令conda update conda,则会出现以下错误: conda update conda Solving environment: failed NotWritableError: The current user does not have write permissions to a required path. path: /path/to/custom/dir/pkgs/urls.

我在运行Linux CentOS 7的笔记本电脑上安装了Conda-through

如果运行命令
conda update conda
,则会出现以下错误:

conda update conda
Solving environment: failed

NotWritableError: The current user does not have write permissions to a required path.
  path: /path/to/custom/dir/pkgs/urls.txt
  uid: 1000
  gid: 1000

If you feel that permissions on this path are set incorrectly, you can manually
change them by executing

  $ sudo chown 1000:1000 /path/to/custom/dir/pkgs/urls.txt

In general, it's not advisable to use 'sudo conda'.
我不知道如何解决这个问题;我也问了,但没有人回答


对如何解决这个问题有什么建议吗?谢谢

康达杂志(conda issue)对此进行了讨论()

您可能已经使用sudo登录,可能是
sudo-u davide bash

如果是,则以下命令将显示SUDO_command作为用于成为用户的命令,以及SUDO_user、SUDO_UID和SUDO_GID:

$ set | grep SUDO
您可以使用
sudo su-davide
获得一个没有sudo定义的干净上下文

我在通过ansible管理共享conda环境时遇到了同样的问题。我的解决方案是使用以下内容作为conda软件包所有者进行操作:

- name: update conda environment
  command: conda update -y --all
  become: yes
  become_user: conda
  become_method: su

在集群上共享anaconda安装是否是一个好主意是另一个问题。

您在哪里安装了Miniconda?i、 例如,在哪个目录下?
/home/davide/miniconda2/
谢谢@Neapolitan,但它不起作用:-/没有任何变化