8  Prepare programming environment

8.1 Create environment: ds

  • Run sudo su, that will open a shell as the superuser and activates the Miniconda base environment:
sudo su
  • We install some modules in a new Miniconda environment. We call this new environment ds (for data science).

  • Copy this code and run it in your terminal:

conda create -n ds python=3.10 pandas jupyter altair scikit-learn
  • Restart VS Code to be able to use this environment in VS Code`s Jupyter Notebook

8.2 Create environment: transformers

  • Run sudo su:
sudo su
  • We install some modules in a new Miniconda environment. We call this new environment transformers:
conda create -n transformers python=3.10 pip --y
  • Activate the new environment:
conda activate transformers
  • Upgrade pip
pip install --upgrade pip
  • Install the transformers library including PyTorch with pip:
pip install 'transformers[torch]' ipykernel

… this may take a while.

  • Restart VS Code to be able to use this environment in VS Code`s Jupyter Notebook

8.3 Create environment: de

  • Run sudo su, that will open a shell as the superuser and activates the Miniconda base environment:
sudo su
  • We install some modules in a new Miniconda environment. We call this new environment milvus.

  • Copy this code and run it in your terminal:

conda create -n milvus python=3.10 pip
  • Activate the new environment:
conda activate milvus
  • Install some packages with pip:
pip install numpy jupyter pymilvus
  • Restart VS Code to be able to use this environment in VS Code`s Jupyter Notebook