May 2018
Intermediate to advanced
380 pages
9h 37m
English
The preceding pipenv example shows the developer changing to the desired directory for the project, and then invoking pipenv to simultaneously create the virtual environment, activate it, and install the desired module.
In addition to creating the virtual environment, once you have created your Python program, you can run the program using pipenv as well:
>>> pipenv run python3 <program_name>.py
Doing this ensures all installed packages in the virtual environment are available to your program, thus reducing the likelihood of unexpected errors.
When launching a pipenv shell, a new virtual environment is created, with indications of where the environment is created in the file system. In this case, two environment executables ...