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
版权声明:本文标题:conda创建新环境,报错:Collecting package metadata (current_repodata.json): failed 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1728628460a1166797.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论