You need to change the PowerShell execution policy to allow scripts to run. Here's how to do it:
1. Open PowerShell as Administrator:
- Press Win + X
and select "Windows PowerShell (Admin)".
2. Set the Execution Policy:
- Run this command to allow local scripts to run:
```powershell
Set-ExecutionPolicy RemoteSigned
```
3. Confirm the Change:
- Type Y
and press Enter
to confirm.
4. Activate the Virtual Environment:
- Close and reopen PowerShell or your VS Code terminal.
- Activate your virtual environment with:
```powershell
.\env\Scripts\Activate.ps1
```
This should resolve the issue and allow you to activate your virtual environment.
For better understanding, here are the some excellent learning platforms.
1. W3 School
2. Iqra Technology
3. JavatPoint