Create Another Virtual Environment
00:00
Before I continue, I want to clear the screen and the terminal with the clear
command. And now deactivate the virtual environment with deactivate
.
00:12 So now you see that the venv is not there anymore at the prompt on the left side, and navigate into the other exercises folder. So we need to go one folder up into the parent directory.
00:25 Let’s check where we are now.
00:28
Now we’re on the desktop with ls
. We can see that there is the other exercises folder, and that’s the folder that we want to change into. So I type OT
and tap to auto-complete the folder name and press enter.
00:41
And with PWD
, I can see that I’m in the other exercises folder. Now, next, you want to create a virtual environment in this folder as well.
00:52
python -m venv
That’s again the folder for the virtual environment. And if you look at the right side of my screen where you can see the file explorer, you see that there is now a venv folder in the other exercises folder.
01:09 That means our virtual environment is there. But in order to use it, you need to activate it.
01:16
Remember, this is the virtual environment in the other exercises folder. So again, that’s source venv/bin/activate
.
01:30 And there you have the parentheses on the left with the venv name again. Okay, so far, so good.
Become a Member to join the conversation.