I have activated git bash
instead of command prompt
(cmd) in Pycharm. Whenever I try to activate the virtualenv, which is named venv
, I face with two problems:
source venv/Scripts/activate
, face with the following error:bash: basename: command not found
()
which (I think) means that it doesn't recognize source
command.
./venv/Scripts/activate
has also another problem:You must source this script: $ source ./venv/Scripts/activate
()
What should I do?
PS: Also <exact-directory>/venv/Scripts/activate
works properly in cmd.
There is a setting in File > Settings > Terminal for "Activate virtualenv". This works for cmd shell, but seems not to work with bash in Windows 10. If I uncheck that setting, 'source venv/Scripts/activate' activates as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With