当前位置:网站首页>NotWritableError: The current user does not have write permissions when conda creates a new environment
NotWritableError: The current user does not have write permissions when conda creates a new environment
2022-08-10 00:55:00 【passion-ma】
In use
conda create -n environment_name
When the command to create a new environment, an error was encountered:
Solving environment: failed
NotWritableError: The curren user does not have write permissions to a required path.
path: /home/user_name/.conda/pkgs/urls.txt
uid: 1021
gid: 1021If you feel that permissions on this path are set incorrectly, you can manually
change them by executing$ sudo chown 1021:1021 /home/user_name/.conda/pkgs/urls.txt
In general, it's not advisable to use 'sudo conda'.
2. Reason for the problem
Perhaps the redundant problem caused by sudo sh Ana... when installing Anaconda.
Anaconda was installed with root permissions, so now non-root users do not have read and write permissions to the anaconda3 folder.
3. Solution
Option 1:
'cd' to the location of the 'annoconda3' folder and run the following command:
sudo chown -R username anaconda3 #username is your own username
Option 2:
Following the prompts he gave to no avail, so use the following command to change the permissions of conda-related folders, -r recursively apply to subfolders
sudo chmod 777 -R ~/anaconda3/
sudo chmod 777 -R ~/.conda/
4. Test
Using the scheme is invalid for my problem, but some netizens say it is feasible.
The second solution successfully solved my problem, and you can create a new environment.
Solving environment: done
边栏推荐
- 68.qt quick-qml多级折叠下拉导航菜单 支持动态添加/卸载 支持qml/widget加载等
- 拼多多店铺运营不得不知的留个运营小知识
- 2020年度SaaS TOP100企业名单
- 基于ABP的AppUser对象扩展
- 直播间搭建,按钮左滑出现删除等操作按钮
- 微信小程序获取微信用户步数
- A summary of 6 common tools for cross-border e-commerce
- 【SSL集训DAY2】有趣的数【数位DP】
- tiup cluster scale-out
- 2022-08-09 mysql/stonedb-subquery performance improvement-introduction
猜你喜欢
金仓数据库 KingbaseGIS 使用手册(6.5. 几何对象编辑函数)
[Cloud Native] This article explains how to add Tencent Crane to Kubevela addon
【JZOF】32从上往下打印二叉树
Jpa 查询view or 无主键的table
《GB5084-2021》PDF下载
【集训DAY4】矩形【线段树】
伦敦银行情中短线的支撑和阻力位
In-depth understanding of multithreading (Part 1)
【C语言】指针和数组的深入理解(第四期)
2022-08-09 mysql/stonedb-子查询性能提升-概论
随机推荐
经济衰退即将来临前CIO控制成本的七种方法
Click: 518. Change Exchange II
下载markdown软件Obsidian(解决官网下载速度慢)
Cmake 用法记录
深圳堡垒机厂家有哪些?重点推荐哪家?
完全背包理论
如何知道电脑开机记录?
力扣:377. 组合总和 Ⅳ
2022-08-09 mysql/stonedb-子查询性能提升-概论
【JZOF】82二叉树中和为某一值的路径(一)
Eureka自我保护
70. 爬楼梯进阶版
ABAP中Collect的用法
A Shanghai technology company was fined 220,000 for brushing orders, exposing the gray industry chain of online brushing
后台管理实现导入导出
你的手机曾经被监控过吗?
Has your phone ever been monitored?
【集训DAY3】中位数
2022-08-09 mysql/stonedb-慢SQL-Q16分析
【集训DAY5】堆箱子【数学】