无法在 Pycharm 中更新 conda

问题描述

我正在尝试通过命令更新 Pycharm 中的 conda,但出现此错误

EnvironmentNotWritableError: The current user does not have write permissions to the target 
environment.

environment location: /opt/miniconda3
uid: 1000
gid: 1000

我检查了文件夹的所有权并确认用户是所有者,而不是 root。如何修复此错误

注意,我使用的是 Linux。

解决方法

尝试在终端中运行:

sudo chown -R $USER:$USER /opt/miniconda3