Python 3, an Illustrated Tour Transcripts
Chapter: Virtual Environments
Lecture: Walk-through: Virtual Environments and Pip (IDLE)

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In this video I'm going to show how to run the venv test file using idle in case you don't have PyCharm and you want to use another editor,
0:09 this is how you would do it from another editor. So the first thing I want to do is I want to activate my environment.
0:17 So I say pipenv shell and that will activate my environment now, I want to launch idle here, so I'm going to say Python -m idlelib.idle.
0:27 If I don't activate my virtual environment first and I launch idle I'll get the system idle that might not have pytest installed.
0:36 So I want to make sure that I have pytest installed. Okay, at this point, idle has launched. Let's open our venv test file, there it is
0:55 and let's just come up here to run and say run module and note that over here in the repl, we got some output and it says it past one in one second.
1:07 So because we have launched this from a virtual environment that has access to pytest, we're able to run this from pytest.
1:14 All we have to say is run module.


Talk Python's Mastodon Michael Kennedy's Mastodon