why virtual environment can't be activated in (git ) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

why virtual environment can't be activated in (git )

I'm using python virtual environment (venv) in one of my projects and when I try to activate the environment in windows native shell it works just fine, but when I use the git shell, it says that the command is not recognized. Any ideas why that is happening in git. and how to go about to fix it?

26th Jan 2018, 4:47 AM
jay
2 Answers
+ 1
The git shell for Windows is already a virtual environment. Keep the two windows open: the git shell and the Windows shell with Python venv.
22nd Feb 2018, 3:50 PM
Fabrício Lombardi Ribeiro
Fabrício Lombardi Ribeiro - avatar
+ 4
@Fabricio thx. a better way to do it is open cmd and activate the venv just like normal and then type bash in cmd. it will run bash in the windows shell, and it's just the same
22nd Feb 2018, 5:10 PM
jay