Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Execution Policy to activate python virtual environment #4

Open
caroott opened this issue Jun 6, 2024 · 1 comment
Open

Set Execution Policy to activate python virtual environment #4

caroott opened this issue Jun 6, 2024 · 1 comment

Comments

@caroott
Copy link

caroott commented Jun 6, 2024

Step 4 of the Setup in the README says to run .\.venv\Scripts\Activate.ps1 to activate the python virtual environment. The standard execution policy for Windows in PowerShell is "Restricted" and doesn't allow script execution. To fix this, you need to run PowerShell in administrator mode and execute the command Set-ExecutionPolicy -ExecutionPolicy RemoteSigned.

@Freymaurer
Copy link
Owner

Nice catch. So maybe it is better to write into docs to call

Python executable in venv. Meaning:

.venv/Scripts/python.exe <command> instead of python <command>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants