Cannot run the following code in Python terminal
From the following page (https://github.com/Babelscape/rebel/blob/main/setup.sh) I got the following code.
#!/bin/bash

# setup conda
source ~/miniconda3/etc/profile.d/conda.sh

# create conda env
read -rp &quot;Enter environment name: &quot; env_name
read -rp &quot;Enter python version (e.g. 3.7) &quot; python_version
conda create -yn &quot;$env_name&quot; python=&quot;$python_version&quot;
conda activate &quot;$env_name&quot;

# install torch
read -rp &quot;Enter cuda version (e.g. 10.1 or none to avoid installing cuda support): &quot; cuda_version
if [ &quot;$cuda_version&quot; == &quot;none&quot; ]; then
    conda install -y pytorch torchvision cpuonly -c pytorch
else
    conda install -y pytorch torchvision cudatoolkit=$cuda_version -c pytorch -c conda-forge
fi

# install python requirements
pip install -r requirements.txt

Does anyone know what can be done to process this code effectively?
Thank you in advance.

This is a Bash script. You only can run it in a Bash Shell.
