May 2019
Intermediate to advanced
542 pages
13h 37m
English
A source distribution can be installed using pip; to see how this works in a clean environment, we'll install our library in a Python virtual environment. Virtual environments are a way to create an isolated Python stack in which you can add or remove libraries independently of your system Python installation.
In a console window, create a new directory and then make it a virtual environment:
$ mkdir test_env$ virtualenv -p python3 test_env
The virtualenv command copies the necessary files into the given directory so that Python can be run, as well as some scripts to activate and deactivate the environment.
To start using your new environment, run this command:
# On Linux and Mac$ source test_env/bin/activate ...
Read now
Unlock full access