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

fixing "source /venv/bin/activate" error message on Windows 10 #2

Open
mikeysan opened this issue Dec 11, 2020 · 0 comments
Open

fixing "source /venv/bin/activate" error message on Windows 10 #2

mikeysan opened this issue Dec 11, 2020 · 0 comments

Comments

@mikeysan
Copy link

On Windows 10 when I ran the source command I got an error message saying source was not a recognised cmdlet.

This is, of course because 'source's is a bash/zsh command and not native to windows. To resolve this on Windows you will need to run .\venv\Scripts\activate

Note:

  1. The path is .\venv\ Scripts \activate. I'm not sure if this is a Windows thing only, but the is no \bin\

  2. You may also need to run this command first as Windows Powershell blocks scripts by default Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned This command will let you change the rules for your user account only.

  3. Run .\venv\Scripts\activate again once you have changed the permission.

I have excluded the error messages as they will be obvious to anyone who gets them.

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

1 participant