|
|
|
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 |