Changes
Page history
Create conda activate in a shell script
authored
Sep 23, 2021
by
Quang tru HUYNH
Show whitespace changes
Inline
Side-by-side
conda-activate-in-a-shell-script.md
0 → 100644
View page @
a54569d4
assuming this basic shell script ~tru/pythonnet-from-yml-example.sh:
```
#!/bin/bash
eval
"
$(
conda shell.bash hook
)
"
;
conda activate pythonnet-from-yml
;
python
-c
"import clr"
&&
echo
ok
```
Run it with:
```
[tru@adm singularity]$ srun -n 1 --gres=gpu:1 singularity exec /master/home/edereure/singularity/container_pythonnet_yml.simg ~tru/pythonnet-from-yml-example.sh
ok
```
\ No newline at end of file