当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
直播预告 | ICML 2022 11位一作学者在线分享神经网络,图学习等前沿研究
金仓数据库 KingbaseGIS 使用手册(6.6. 几何对象校验函数、6.7. 空间参考系函数)
多商户商城系统功能拆解24讲-平台端分销会员
探索TiDB Lightning源码来解决发现的bug
redis分布式锁代码示例
力扣:279.完全平方数
工程 (七) ——PolarSeg点云语义分割
【集训DAY3】中位数
781. 森林中的兔子
Seq2Seq论文阅读笔记
伦敦银行情中短线的支撑和阻力位
Cmake 用法记录
【接口测试】requests 库请求体字符串解码
金仓数据库 KingbaseGIS 使用手册(6.2. 管理函数)
力扣:518. 零钱兑换 II
了解什么是架构基本概念和架构本质
Filament - Material basic graphics drawing
CAD 截断线段
金仓数据库 KingbaseGIS 使用手册(6.4. 几何对象存取函数)
Force Buckle: 474. Ones and zeros