First, start powershell with administrator privileges and execute the following command to enable the script file to be executed.
PS > PowerShell Set-ExecutionPolicy RemoteSigned
Next, create a venv file with the target local file
PS > python -m venv venv
Next, start the virtual environment
PS > venv\Scripts\activate.ps1
When you leave
PS > deactivate
Recommended Posts