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 源激活不存在?
基础教程推荐
- 尝试制作WhatsApp机器人 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
