为什么不存在Anaconda源激活? [英] Why is Anaconda source activate non-existent?
问题描述
我在Anaconda中成功创建了两个单独的Python环境,但似乎无法激活其中任何一个.我试图在Stackoverflow上尽可能多地阅读此主题,但是没有任何解决方案能够解决我的问题.我添加了此问题中的注释所要求的信息( Anaconda环境无法激活).
I successfully created two separate Python environments in Anaconda, yet seem to be unable to activate either one of them. I have tried to read up on this topic as much as possible here on Stackoverflow, yet no solution did resolve my issue. I added information asked for by comments in this question (Anaconda Environment Doesnt activate).
尝试激活环境时,控制台输出为-bash: activate: No such file or directory
.
When trying to activate an environment, the console output is -bash: activate: No such file or directory
.
which conda
的输出是/Users/username/anaconda3/bin/conda
.
type source
的输出是source is a shell builtin
.
尝试which activate
时,shell不返回任何内容.
The output of which conda
is /Users/username/anaconda3/bin/conda
.
The output of type source
is source is a shell builtin
.
When trying which activate
, the shell returns nothing.
在我的bin
文件夹中,我似乎也没有一个activate
可执行文件,只有一个名为activate-global-python-argcomplete
的可执行文件.
In my bin
folder, I also seem not to have an activate
executable, but only one which is called activate-global-python-argcomplete
.
为什么我没有标准的激活文件,如何才能最好地解决此问题?
Why do I lack the standard activate file and how I could resolve this issue best?
推荐答案
我遇到了类似的问题.就我而言,问题与tcsh
的使用有关,但是activate
仅支持bash
和zsh
.
I experience a similar problem. In my case, the problem is related to the use of the tcsh
, but activate
only supports bash
and zsh
.
您可以使用以下命令检查您当前使用的外壳
echo $0
.
You can check your current used shell with the command
echo $0
.
您必须使用兼容的外壳程序才能使用source activate
命令.
You have to use a compatible shell in order to use the source activate
command.
这篇关于为什么不存在Anaconda源激活?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!