Skip to content

Latest commit

 

History

History
88 lines (60 loc) · 4.05 KB

File metadata and controls

88 lines (60 loc) · 4.05 KB

Generative and Agentic AI: Development Environment Setup Guide

Python

Download and install the latest Python vesrion.

Important

During installation, add python to your environmental variables. That means that you have to check the box saying ADD TO PATH on the first screen during the installation

Note

If prompted select to additionally install pip.

Caution

We do not recommend using other python distributions (e.g. anaconda).

  1. Verify that python is installed.
    • Open a command prompt and type the command for launching a python interpreter. Depending on the OS and python's version this can either be python, python3, py or py3.
    • If none work, you need to add python to your environmental variables manually. To do this, find the interpreter in the installation directory and add it as an environmental variable.
    • From now on we'll consider that python is installed and works with the command python. If this differs in your PC, use your own instead of python from now on.
  2. Verify that pip is installed.
    • Open a command prompt and type the command pip.
    • If it doesn't exist type python -m pip. If this works, you can add pip to your environmental variables (look above on how to do this). `
    • If pip isn't installed, download the installer from here and run it as a python script (on a terminal): python get-pip.py.

pipx

To install every python tool in an isolated environment without interfere with all the other tools and the basic installation of the python you have to install pipx. Open a terminal and issue the following commands:

    python -m pip install --user pipx
    python -m pipx ensurepath

poetry - Python Packaging and Dependency Manager

To install poetry in a terminal issue the following command

    pipx install poetry

If you want the .venv inside your project run

    poetry config virtualenvs.in-project true

(it is a global configuration - one time setup)

Code editor

Feel free to use any IDE you like. However, VS Code is the recommended IDE since it is light-weight, has a ton of extensions/plugins, and it is an industry standard.

Docker

Windows

  1. Download Desktop Docker for Windows installer

  2. Run the Docker installer. You will need administrator access for this step.

  3. The installer will give the option of “Use WSL 2 instead of Hyper-V” on a configuration page which it will show you. You BETTER select the option of “Use WSL 2…”. .

  4. The installer will perform one or more restarts during installation. Once again, after your machine restarts.

Linux/Mac

Go to Desktop Docker From the left menu choose Product --> Setup --> Install and follow the instructions according to your operating system.

Node.js

Install the latest LTS version of Node.js

  • After installing node please verify that you have set up everything correctly by typing the below commands on your terminal:
    node -v (any version above or equal 17 is fine)
    npm -v (any version or equal 7 is fine)

Microsoft Authenticator

To access your azure account 2 Factor Authentication is required. Using your mobile device connect to your store and install Microsoft Authenticator App

Git

  1. Git, download and install Git Version Control

Accounts

  1. There is no need to create an MS Azure account. One will be provided to you in class.
  2. Create a Hugging Face account
  3. Create a Postman account
  4. Create a Github account