Search⌘ K
AI Features

Preparing your Virtual Environment: Pipfile

Explore how to set up and manage your Python virtual environment with Pipfile in this lesson. Understand how to organize dependencies for deployment and development, and learn techniques for running Python within the virtual environment to ensure consistent project setup.

Pipfile

We have Flask version 1.0.2 installed, which depends on the modules for Click, itsdangerous, Jinja2, and Werkzeug. Also, Jinja2 requires MarkupSafe. Typically, pipenv manages this information, so we don’t need to think about it. The only important part is what goes in the Pipfile:

JavaScript (JSX)
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
flask = "*"
[requires]
python_version = "3.7"

Packages required for deployment are listed under the [packages] heading, while ...