I want to run the Windows (Command Prompt) equivalent of
source myvenv/bin/activate
so as to activate and enter into my virtual environment.
I want to run the Windows (Command Prompt) equivalent of
source myvenv/bin/activate
so as to activate and enter into my virtual environment.
Go to the the directory where you have the ".bat" file by executing this command:
C:\Users\MyName\Desktop\ProjectsWork\FlaskApplication> cd env\Scripts
Then just call the ".bat" file
\Desktop\ProjectsWork\FlaskApplication\env\Scripts> activate.bat
(env) C:\Users\MyName\Desktop\ProjectsWork\FlaskApplication\env\Scripts>
If you want to use your environment in batch file then
call C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3
All the following command will be executed in virtual environment
If you want to activate your virtual environment after running:
virtualenv env
Just run:
env\Scripts\activate
This command will provide you the correct path and the command "source" is not necessary.