Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash: basename: command not found on windows git

I'm working on a python project. My machine is Windows 10, 64 bit. I have Git installed and from pycharm terminal I tried to call source venv\Scripts\activate. As a result I get the error bash: basename: command not found \n(). Yeah, those parenthesis appears one line below the error. In addition the branch name disappeared from the terminal prompt. From this point forehand all bash commands are no longer recognised by the terminal. Any attempt for ls, cp or source resulted in the same error message.

Restarting pycharm cause the bash shell to be active again with the branch name at the prompt but calling source shut it down with the same error.

Any idea how to fix this and activating venv properly?

like image 398
Zack Avatar asked Jun 10 '26 22:06

Zack


1 Answers

Click on File and then on Settings option. Then, click on Tools in the left hand pane and then on Terminal from the options. There you'll see an option "Activate virtualenv". Uncheck it,


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!