Why is Anaconda source activate non-existent?(为什么 Anaconda 源激活不存在?)
问题描述
我在 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
.
您可以使用以下命令检查您当前使用的 shellecho $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 源激活不存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么 Anaconda 源激活不存在?
基础教程推荐
- 合并具有多索引的两个数据帧 2022-01-01
- 使用Python匹配Stata加权xtil命令的确定方法? 2022-01-01
- 如何在Python中绘制多元函数? 2022-01-01
- 症状类型错误:无法确定关系的真值 2022-01-01
- 使用 Google App Engine (Python) 将文件上传到 Google Cloud Storage 2022-01-01
- 将 YAML 文件转换为 python dict 2022-01-01
- 哪些 Python 包提供独立的事件系统? 2022-01-01
- 如何在 Python 中检测文件是否为二进制(非文本)文 2022-01-01
- 使 Python 脚本在 Windows 上运行而不指定“.py";延期 2022-01-01
- Python 的 List 是如何实现的? 2022-01-01