gpt4 book ai didi

python - conda安装django时出现PermissionError(13, 'Permission denied')

转载 作者:太空狗 更新时间:2023-10-29 20:40:16 31 4
gpt4 key购买 nike

当我运行 conda install django 时,出现以下错误:

Solving environment: done

==> WARNING: A newer version of conda exists. <==

current version: 4.4.10

latest version: 4.4.11

Please update conda by running

$ conda update -n base conda

## Package Plan ##

environment location: /opt/anaconda/anaconda3

added / updated specs: - django

The following NEW packages will be INSTALLED:

django: 2.0.2-py36hd476221_0

Proceed ([y]/n)? y

Preparing transaction: done

Verifying transaction: done

Executing transaction: failed

ERROR conda.core.link:_execute(481): An error occurred while installing package 'defaults::django-2.0.2-py36hd476221_0'. PermissionError(13, 'Permission denied') Attempting to roll back.

Rolling back transaction: done

PermissionError(13, 'Permission denied')

我该怎么办?

最佳答案

我解决了:

sudo chown -R user anaconda3

哪里user是你的用户名和anaconda3是 anaconda 安装的路径,可以通过运行 conda info 找到.

我用了this issue作为引用。

关于python - conda安装django时出现PermissionError(13, 'Permission denied'),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49092807/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com