I
I
Igor Andreev2018-08-30 16:43:08
Django
Igor Andreev, 2018-08-30 16:43:08

How to set up a virtual environment in GitBash?

Hello!
Please do not judge strictly, I am a beginner, I encountered some misunderstanding, perhaps a very simple problem.
Maybe someone has come across something like this. I'm working
on this book "Test-Driven Development with Python" https://www.ozon.ru/context/detail/id/145743532/
I use pycharm, a virtual environment is installed, everything is OK, everything works.
But on page 159, you need to run the command in Git-Bash using a virtual environment. And I don't understand how to set up a virtual environment in Git-Bash. An error is thrown, it does not find the django module:
5b87f3697bf1b740352750.png
Can someone tell me or throw off a link how to activate the virtual environment?
Thank you for your attention

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alekseev, 2018-08-30
@Igorva

If you are running in the same directory as PyCharm, then it will be enough to run the command to enter the virtual environment:
source venv/bin/activate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question