July 2019
Beginner to intermediate
740 pages
16h 52m
English
To create our environment for this book, we will use the venv module from the standard library. Note that we must provide a name for our environment:
$ python -m venv book_env
Now, we have a folder for our virtual environment named book_env inside of the repository folder we cloned/downloaded earlier. In order to use the environment, we need to activate it:
$ source book_env/bin/activate
Note that, after we activate the virtual environment, we can see (book_env) in front of our prompt on the command line; this lets us know we are in the environment:
(book_env) $
When we are finished using the environment, we simply deactivate it:
(book_env) $ deactivate
Any packages that are installed in the environment don't exist outside the ...
Read now
Unlock full access