After following these steps make sure your IDE/Jupyter Notebook is using the right enviroment!
Step 1: Check Python Installation
Make sure Python is installed on your machine. You can check by running:Step 2: Create the Virtual Environment
In your project directory, run the following command to create a virtual environment:venv that contains a fresh Python environment.
Step 3: Activate the Virtual Environment
- On macOS/Linux:
- On Windows (Command Prompt):
- On Windows (PowerShell):
You should activate the virtual environment every time you start working on your project.
Step 4: Install Dependencies
You can now install packages usingpip: