3

I am trying to use this command

source .venv\bin\activate 

but I get this error

'source' is not recognized as an internal or external command, operable program or batch file. 

can some one help me with this

2
  • I don't think, this is meant for windows, but specifically *nix platforms. For windows, i believe it is just running the activate.bat file Commented Aug 28, 2020 at 7:07
  • stackoverflow.com/… Commented Aug 28, 2020 at 10:26

1 Answer 1

3

1.use cmd rather that cmder

2.to create env use "python -m venv <name_of_your_env>"

3.after this check if it created the environment or no by using "dir"

4.to activate the environment use "<name_of_your_env>\Scripts\activate.bat"

5.to deactivate the environment use "deactivate"

6.to delete the environment completely use "rmdir <name_of_your_env> /s"

You can also refer to this video if my explanation is not clear: https://youtu.be/APOPm01BVrk

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.