Reputation: 89
I have been able to create a virtual environment on a Windows machine by following the docs. I am very familiar with virtualenv
but on macos.
However when I try to activate the environment:
Scripts/activate.bat
as described in the docs
I see no action that shows it has been activated. I do see time pass before the bash resets ready for another command so thats something.
But when I type deactivate
to deactivate the virtual environment I get
bash: deactivate: command not found
So either it is being activated and I am not correctly deactivating (even though the docs says just to type deactivate
much like mac).
Or nothing is being activated.
Anyone familiar?
Upvotes: 1
Views: 1729
Reputation: 182093
The .bat
files are for the Windows command shell, cmd.exe
. If you're using bash on Windows, you should use the corresponding (ba)sh scripts, for example source tutorial-env/bin/activate
.
Upvotes: 2