Modifying Environment Variables on Windows
To modify environment variables on Windows, follow these steps:
- Open the Start menu and search for “Environment Variables”
- Click “Edit the system environment variables”
- Click the “Environment Variables” button
- Under “System Variables”, find the “PYTHONPATH” variable and click “Edit”
- Add the path to the directory you want to add to the Python path
- Click “OK” to save the changes
Modifying Environment Variables on macOS and Linux
To modify environment variables on macOS and Linux, follow these steps:
- Open a terminal window
- Type the following command to open the environment variables file:
sudo nano /etc/environment