Setting up Developer Environment for Building Agents
- Create a folder
mkdir virtualenvdemo && cd virtualenvdemo - Create a virtual environment
python -m venv .venv - Activate virtual environment on Terminal
- Windows:
.venv\Scripts\activate

- Linux/Mac

- Windows:
- Python has two types of libraries
- Standard Library: This is shipped with python installation
- Third Party Or Community Packages: This requires an additional installation. python has a pypi
- To install packages
pip install <package-name> - To have a way to list out all the requirements we use command
pip freeze

- We create requirements.txt to list out all requirements
pip freeze > requirements.txt - If we have requirements.txt we can install all dependencies using
pip install -r requirements.txt - Lets install necessary extensions
- Python (Microsoft)
- Jupyter
- In Visual studio Code lets use the virtual environment created
- Use command pallete (Windows-Ctrl+Shift+p, Mac: Cmd+Shift+p)
- Select the interpreter

Lets create a Jupyter Notebook
-
Create a file with name
hello.ipynbin vscode


-
Using jupyter notebook we can create cells which are either markdown or code
-
Watch classroom recording for visual guidance
