我希望运行一个简单的shell脚本来简化对conda环境的管理。通过conda activate在linux os中激活conda环境在shell中运行良好,但在shell脚本中却是有问题的。有人能告诉我为什么会发生这种事吗?
重复此问题的示例:
# default conda env
$ conda info | egrep "conda version|active environment"
active environment : base
conda version : 4.6.9
# activate new env to prove
conda环境存在,但activate找不到它。这是怎么回事,我该如何排除故障?
C:\ArcGIS\Pro\bin\Python\Scripts>conda --version
conda 4.9.2
C:\ArcGIS\Pro\bin\Python\Scripts>.\activate.bat arcpro-clone
EnvironmentNameNotFound: Could not find conda environment: arcpro-clone
You can list all discoverable environments with `conda
我正在尝试激活集群上的conda环境。然而,我一直被返回需要初始化的shell。Ruuning conda init bash什么也不做,甚至当关闭外壳并再次尝试时,我也会得到同样的“conda is not initialized”? -bash-4.2$ conda activate libraries/
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda
我一直在win10系统中使用anaconda 2018.12 (conda 4.5.12)和git-bash,在我遵循以下错误消息后,它工作得非常好。
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If your shell is Bash or a Bourne variant, enable conda for the current user with
$ echo ". C:\Users\user\Anaconda3/
我想在bash.exe上使用"conda activate“,因为我将它设置为VSCode默认终端。这在F5调试运行时使用。
系统
Windows10Visual Studio代码1.36.1conda 4.7.10Git for Windows v2.22.0 < Code >F29</code>
环境变量由Anaconda安装管理器设置,python命令在任何情况下都有效。然而,conda activate并非如此。此命令在新的bash.exe中失败,并显示以下错误。
CommandNotFoundError: Your shell has not been
所以,最近我开始学习Python的数据Sc。并安装了迷你塔。我计划用VS代码来练习。我向VS代码添加了python.exe路径。但是,当我从VSCode开始在我的默认Git Bash终端中执行python程序时,它给出了以下错误:
$ conda activate base
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change
我正在尝试使用谷歌Colaboratory上的conda创建一个虚拟环境。但是,由于以下错误,我无法激活。
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zs
如果我运行 xterm -hold 在新的终端中,我键入 conda activate my_environment conda环境"my_environment“确实被激活了。 但是,当使用-e标志传递此命令时,它不起作用: xterm -hold -e "conda activate my_environment" 相反,它返回以下错误消息: CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize
我在一个CMakeLists.txt文件中有以下内容。我试图使用cmake来检查系统上是否安装了名为myenv的conda环境,并激活了该环境。如果环境不存在,则创建环境并激活它。这假设conda已经通过 (或Miniconda)安装。
# Create and activate a Python environment.
cmake_minimum_required(VERSION 3.18)
# Define the project
project(MyExample)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set
当我在我的Mac OS (现在使用Catalina,但在升级之前获得相同的行为)中打开终端窗口时,我三次收到以下消息:
Last login: Sat Nov 23 11:38:00 on ttys001
ERROR: The install method you used for conda--probably either `pip install conda`
or `easy_install conda`--is not compatible with using conda as an application.
If your intention is to install cond
我正在MacOS上运行MacOS,由于某些原因,在试图切换虚拟环境时会出现以下错误:
bash-3.2$ conda activate yhoo
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
我正在使用GitHub操作设置持续集成。其中一个先决条件(samtools)是conda最容易安装的。使用已安装软件包的标准方法是激活相应的conda环境。我正在寻找一种激活conda 环境的方法。激活它的常用方法失败了,请参阅下面的详细信息。我目前的解决方法是在PATH中添加一个由conda安装的到samtools的硬编码路径。但是,如果安装的软件包数量增加,这是不可维护的。它也不是使用与conda一起安装的软件包的标准方法。
详细信息:
.github/workflows/conda.yml
name: Conda
on: [push]
jobs:
# label of the jo
我在Ubuntu 16.04上运行Conda 4.6.14。
我考虑在Jenkins管道中使用使用Conda的虚拟环境,这需要Ansible,通过让所有节点使用相同的环境,ansible-env来运行播放簿。虽然这个过程看起来非常直接,但我无法调用conda activate ansible-env,因为它会导致以下错误:
+ conda activate ansible-env
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initi
最近,我突然在Anaconda提示符和使用VS Code启动jupyter实例时遇到了问题。有一个访问被拒绝的错误,但即使作为管理员,我也收到了一个错误,它指出了我路径中的一些空格问题。我从来没有遇到过这个问题,anaconda已经工作了一年多了。 因此,我卸载了Anaconda,并完全重新安装了它。当我从“开始”菜单启动时,错误仍然存在。 Access is denied.
The system cannot find the file C:\Users\Ananth.
Could Not Find C:\Users\Ananth Mahadevan\AppData\Local\Temp\
我的目录/home/owner/anaconda3/envs/qiime2-2019.1中有qiime2程序。在Linux终端,我运行source activate /home/owner/anaconda3/envs/qiime2-2019.1来启动这个程序。
我试着在R中以system('source activate /home/owner/anaconda3/envs/qiime2-2019.1')的身份这样做,但是它给出了这个错误:sh: 1: activate: not found Warning message: In system('activate /
我试图在构建conda环境的服务器上构建一个Docker容器。除了启用了CUDA的PyTorch之外,所有其他要求都得到了满足(我可以让PyTorch在没有CUDA的情况下工作,但是,没有问题)。如何确保PyTorch使用的是数据自动化系统?
这是Dockerfile:
# Use nvidia/cuda image
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04
# set bash as current shell
RUN chsh -s /bin/bash
# install anaconda
RUN apt-get update
RUN
我刚接触奇点,我想在奇点配方中激活一个conda环境(myenv),以便在其中安装一个包(mypkg)。我已经阅读了一些相关的帖子,但答案并没有解决我的问题,尽管这些问题非常相似(Activate conda environment on execution of Singularity container in Nextflow,How to activate an Anaconda environment in a Singularity recipe,Building Singularity recipe from Nipype docker image CommandNotFound
我在连续集成中运行以下命令(不是在机器上本地运行):
conda env create -f python/env/foo.yml && conda init bash && conda activate foo
但是,我得到了以下错误:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>