How to Solve pycharm terminal Failed to switch to virtual environment

1. Windows + X opens the panel, selects to run PowerShell as an administrator, enters: set executionpolicy remotesigned, and then enters “Y” to indicate execution.

2. Execute activate again in the pycharm terminal

Read More: