【问题标题】:How to extend conda base environment?如何扩展conda基础环境?
【发布时间】:2019-04-12 10:23:25
【问题描述】:

我想创建 conda 环境,主要用于 jupyter 实验室。

我试过了:

conda create --name NLPConda anaconda

还有

conda create --name NLPConda --clone base

但收到:

Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while installing package 'defaults::python-3.7.0-hea74fb7_0'.
PermissionError(13, 'Permission denied')
Attempting to roll back.

Rolling back transaction: done

PermissionError(13, '权限被拒绝')

我已经尝试了好几次,甚至尝试从我的计算机中删除 Anaconda 并重新安装它。这是我当前的版本:conda 4.5.11

我也尝试在不克隆基础的情况下创建虚拟环境,但是 jupyter-lab 不起作用。

我主要使用它在克隆的 conda 环境中激活 JupyterLab。我错过了什么?谢谢

【问题讨论】:

    标签: jupyter-notebook virtualenv jupyter conda jupyter-lab


    【解决方案1】:

    我做了两件事来让它发挥作用: 1.在默认提供的位置重新安装 2.以管理员身份运行安装

    【讨论】:

    • 我也有同样的问题。 “以管理员身份”启动 powershell 并尝试克隆基本环境 (base) PS C:\Windows\system32> conda create --name nambu --clone base WARNING: The conda.compat module is deprecated and will be removed in a future release. Source: C:\ProgramData\Anaconda3 Destination: C:\ProgramData\Anaconda3\envs\nambu The following packages cannot be cloned out of the root environment: - defaults::conda-4.6.11-py37_0 - defaults::conda-build-3.17.8-py37_0 - defaults::conda-env-2.6.0-1 Packages: 258 Env 似乎可以正常工作?