康达无法激活环境 [英] Conda can't activate environment

查看:93
本文介绍了康达无法激活环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users>conda env list
# conda environments:
#
deepdream                    C:\Users\AppData\Local\Continuum\Anaconda32\env
s\deepdream
pd16.2                     C:\Users\AppData\Local\Continuum\Anaconda32\env
s\pd16.2
root                  *  C:\Users\AppData\Local\Continuum\Anaconda32


C:\Users>activate deepdream
No environment named "deepdream" exists in C:\Users\AppData\Local\Continuum\Anaconda32\envs

C:\Users>

我为Deepdream代码创建了一个环境,但无法通过命令激活它提示。似乎conda将其识别为环境,但是激活它失败

I've made an environment for the deepdream code and I'm unable to activate this through the command prompt. Seems like conda recognizes it as an environment, but activating it fails

有任何想法吗?

推荐答案

我将重新创建该环境。有时,如果在软件包安装过程中出了点问题,可能会导致环境配置损坏,例如丢失/无效的文件。

I would recreate that environment. Sometimes, if something goes wrong during package installation, this can result in a broken environment configuration, e.g. missing/invalid files.

激活脚本会寻找一些子目录(可能还有更多东西)来确定给定目录是否为有效环境。

The activate script looks for a few subdirectories (and possibly more things) to decide if the given directory is a valid environment.

很难远程诊断您的故障,因此,我建议您重新创建该环境(只需重命名旧文件夹)。

It is hard to diagnose your fault remotely, so I would suggest that you recreate that environment (simply rename the old folder).

如果要诊断错误,请随后比较这两个目录。

If you want to diagnose the error, compare those two directories afterwards.

这篇关于康达无法激活环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆