Need to understand and fix conda in linx for shell scirpt

45 views Asked by At

in linux command line. I run these series of lines:

source /Path/To/Tools/For/Conda/Env
conda load miniconda/3
conda activate special
snakemake --core 1

This works great!

When I turn this into a shell, it doesnt work and I dont understand why...

#!/bin/bash

source /Path/To/Tools/For/Conda/Env
conda load miniconda/3
conda activate special
snakemake --core 1

I get this error: _conda_EXE= /Path/To/Tools/For/bin/Conda/Env Command not found

_conda_ROOT= /Path/To/Tools/For Command not found

Badly placed ()'s

CommandNotFoundError: your shell has not been propertly configured to use conda activate. if you shell is bash or bourne variant, enable conda for current use with

$ echo ". /Path/To/Tools/For/Conda/Env" >> ~/.bashrc

I am kind of new at this want to fix this, how?

0

There are 0 answers