当前位置:网站首页>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_nameWhen 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
边栏推荐
猜你喜欢
随机推荐
力扣:518. 零钱兑换 II
harbor配置远程仓库
Sqlserver限制账户在哪些ip下才可以访问数据库
《GB5084-2021》PDF下载
全面解析FPGA基础知识
金仓数据库 KingbaseGIS 使用手册(6.4. 几何对象存取函数)
H5实现分享功能
A Shanghai technology company was fined 220,000 for brushing orders, exposing the gray industry chain of online brushing
ES6 从入门到精通 # 15:生成器 Generator 的用法
用函数统计最长单词的字母数量
【JZOF】77 Print binary tree in zigzag
ES6 从入门到精通 # 14:迭代器 Iterator 的用法
金仓数据库 KingbaseGIS 使用手册(6.6. 几何对象校验函数、6.7. 空间参考系函数)
用哈希简单封装unordered_map和unordered_set
complete knapsack theory
Filament - Material basic graphics drawing
【云原生】Kubernetes编排工具精讲
【JZOF】32从上往下打印二叉树
leetcode 20. Valid Parentheses 有效的括号(中等)
力扣:377. 组合总和 Ⅳ









