Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source command error in Windows 10 on cmder [duplicate]

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

like image 958
Beast Avatar asked Dec 19 '25 10:12

Beast


1 Answers

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

like image 70
Beast Avatar answered Dec 21 '25 01:12

Beast