Python

Installation of the environment for Python without admin privilege

Jupyter notebook

The Jupyter Notebook is the original web application for creating and sharing computational documents. It offers a simple, streamlined, document-centric experience. Read more…

Installation:
$ python3 -m pip install --upgrade pip --user
$ python3 -m pip install --upgrade six --user
$ python3 -m pip install jupyter --user

Jupyter lab

JupyterLab offers a more advanced, feature rich, customizable experience compared to Jupyter Notebook. Read more…

Installation:
$ python3 -m pip install --upgrade pip --user
$ python3 -m pip install --upgrade six --user
$ python3 -m pip install jupyterlab --user

Conda

Conda is an open-source, cross-platform, language-agnostic package manager and environment management system. It was originally developed to solve difficult package management challenges faced by Python data scientists, and today is a popular package manager for Python and R. Read more….

Installation: 
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ sh Miniconda3-latest-Linux-x86_64.sh

Update:
$ /home/$USER/miniconda3/bin/conda update -n base -c defaults conda

Create a conda environment and activate conda:
$ /home/$USER/miniconda3/bin/conda create --name myconda
$ 
$ conda activate myconda

Install packages:
TensorFlow:
$ conda create --name=tf python=3.10
$ conda activate tf
$ conda install -c conda-forge cudnn
$ mkdir -p $CONDA_PREFIX/etc/conda/activate.d
$ echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/' > $ CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
$ python3 -m pip install TensorFlow



Disable Conda:
$ conda config --set auto_activate_base False

User guide: 

# list the envs:
$ conda info --envs
or 
$ conda env list


FAQ: