This guide will help you set up your development environment for the AI Security course. Follow the instructions for your operating system to install all required tools.
- Python 3.10+ - Programming language for AI/ML development
- Visual Studio Code - Code editor and development environment
- VS Code Extensions - Enhanced functionality for Python and Jupyter notebooks
- Git - Version control system
- Jupyter - Interactive notebook environment
** We reccommend 3.11 **
Web Install:
- Visit python.org
- Download the latest Python 3.11 installer
- Run the installer and check "Add Python to PATH"
- Select "Install for all users" (recommended)
- Verify installation by opening Command Prompt and typing:
python --version
Command Line (using Chocolatey):
# Install Chocolatey first (if not installed)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install Python
choco install pythonCommand Line (using Winget):
winget install Python.Python.3.11Web Install:
- Visit python.org
- Download the latest Python 3.11 installer
- Run the installer package
- Verify installation:
python3 --version
Command Line (using Homebrew):
# Install Homebrew first (if not installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python
brew install pythonCommand Line (APT):
# Update package list
sudo apt update
# Install Python and pip
sudo apt install python3 python3-pip python3-venv
# Verify installation
python3 --version
pip3 --versionLinux (CentOS/RHEL/Fedora):
# For CentOS/RHEL
sudo yum install python3 python3-pip
# For Fedora
sudo dnf install python3 python3-pip
# Verify installation
python3 --version
pip3 --versionWeb Install:
- Visit code.visualstudio.com
- Click "Download for Windows"
- Run the installer with default settings
- Launch VS Code
Command Line:
# Using Chocolatey
choco install vscode
# Using Winget
winget install Microsoft.VisualStudioCodeWeb Install:
- Visit code.visualstudio.com
- Click "Download for Mac"
- Open the downloaded .zip file
- Drag VS Code to Applications folder
Command Line:
# Using Homebrew
brew install --cask visual-studio-codeWeb Install:
- Visit code.visualstudio.com
- Download the appropriate package (.deb, .rpm, or .tar.gz)
- Install using your package manager
Command Line (Ubuntu/Debian):
# Download and install Microsoft GPG key
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
# Update package list and install
sudo apt update
sudo apt install codeCommand Line (CentOS/RHEL/Fedora):
# Add Microsoft repository
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
# Install (CentOS/RHEL)
sudo yum check-update
sudo yum install code
# Install (Fedora)
sudo dnf check-update
sudo dnf install codeAfter installing VS Code, you'll need these essential extensions:
- Python (ms-python.python) - Python language support
- Pylance (ms-python.vscode-pylance) - Enhanced Python language server
- Jupyter (ms-toolsai.jupyter) - Jupyter notebook support
- Python Black Formatter - Code formatting
- Flake8 - Code linting
- YAML - YAML file support
- JSON - Enhanced JSON support
- Open VS Code
- Click the Extensions icon (four squares) in the sidebar
- Search for and install each extension:
Open a terminal and run these commands:
# Essential Python extensions
code --install-extension ms-python.python
code --install-extension ms-python.vscode-pylance
code --install-extension ms-toolsai.jupyter
# Additional helpful extensions
code --install-extension ms-vscode.vscode-json
code --install-extension redhat.vscode-yaml
code --install-extension ms-python.black-formatter
code --install-extension ms-python.flake8
code --install-extension ms-python.autopep8Web Install:
- Visit git-scm.com
- Download and run the installer
- Use default settings (recommended)
Command Line:
# Using Chocolatey
choco install git
# Using Winget
winget install Git.GitCommand Line:
# Using Homebrew
brew install git
# Or use Xcode Command Line Tools
xcode-select --installCommand Line:
# Ubuntu/Debian
sudo apt install git
# CentOS/RHEL
sudo yum install git
# Fedora
sudo dnf install gitJupyter will be installed automatically when you create your Python virtual environment using the provided requirements.txt file. However, if you want to install it globally:
# Install Jupyter
pip install jupyter
# Or install JupyterLab (modern interface)
pip install jupyterlabAfter installation, verify everything is working:
-
Python: Open terminal/command prompt and run:
python --version # or on macOS/Linux python3 --version -
VS Code: Launch VS Code and verify it opens correctly
-
Git: Run in terminal:
git --version
-
VS Code Extensions: In VS Code, go to Extensions and verify the Python and Jupyter extensions are installed and enabled
- Windows: Reinstall Python and ensure "Add Python to PATH" is checked
- macOS/Linux: Add Python to your shell profile (
.bashrc,.zshrc)
- Restart VS Code after installing extensions
- Check that Python interpreter is correctly selected (Ctrl/Cmd + Shift + P β "Python: Select Interpreter")
- Use
sudofor system-wide installations - Consider using virtual environments for project-specific installations
Once you have all tools installed:
- Follow the instructions in
setup_verification.ipynbto create a virtual environment - Test your installation using
verify_setup.py - Install the required packages from
requirements.txt
If you encounter issues during setup:
- Check the troubleshooting section above
- Search for your specific error message online
- Consult your course instructor or technical support
This setup guide ensures you have all necessary tools for the AI Security course. Keep this document handy for reference throughout the course.