当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
conda新建环境时报错NotWritableError: The current user does not have write permissions
直播app开发搭建,flutter 实现自适应、自动换行、相对布局
多商户商城系统功能拆解25讲-平台端分销申请
Gartner全球集成系统市场数据追踪,超融合市场增速第一
【集训DAY3】石油储备计划【树形DP】
【渗透工具】浏览器数据导出工具
Travel with Shengteng: See all the AI attractions in Jinling City in one day
How to match garbled characters regularly?
Snap: 322. Change of Change
ABAP中Collect的用法
redis分布式锁代码示例
完全背包理论
用函数统计最长单词的字母数量
力扣:518. 零钱兑换 II
ES6 从入门到精通 # 15:生成器 Generator 的用法
【集训DAY4】异或【字典树】
Filament - Material basic graphics drawing
【集训DAY3】中位数
Gumbel distribution of discrete choice model
Comprehensive analysis of FPGA basics