how to create and activate a python virtual enviornment
To activate a Python virtual environment on macOS, follow these steps depending on how you created it:
🛠️ Step-by-Step
1. Create a virtual environment (if not already done):
This creates a folder myenv
with the virtual environment.
2. Activate the virtual environment:
You'll know it's activated when your shell prompt shows the environment name like:
🧪 To test:
It should point to something like:
No comments