admin管理员组

文章数量:1612098

问题:

在ubuntu 18.04 下执行 conda create -n py27 python=2.7 命令时,收到以下错误:

Collecting package metadata (current_repodata.json): failed

NotWritableError: The current user does not have write permissions to a required path.
  path: /home/[user_name]/anaconda3/pkgs/cache/b35683e8.json
  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 /home/[user_name]/anaconda3/pkgs/cache/b35683e8.json

In general, it's not advisable to use 'sudo conda'.

解决方法

# 替换 `[user_name]`,为当前用户名
sudo chown -R [user_name] /home/[user_name]/anaconda3

参考链接:Collecting package metadata (current_repodata.json): failed NotWritableError: The current user does not have write permissions to a required path

本文标签: 报错环境CollectingCondaPackage