PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Configure a pipenv environment

Last modified: 11 October 2024

Pipenv is a tool that provides all necessary means to create a virtual environment for your Python project. It automatically manages project packages through the Pipfile file as you install or uninstall packages.

Pipenv also generates the Pipfile.lock file, which is used to produce deterministic builds and create a snapshot of your working environment. This might be particularly helpful for security sensitive deployment, when project requirements and packages versions are critical. For more information about pipenv, refer to the project documentation at pipenv.pypa.io.

To use pipenv with PyCharm, you need to implement several preparation steps.

After the preparation steps are done, you can use pipenv to create a virtual environment for new or existing projects.

You can also set up pipenv for any of your earlier created projects.

PyCharm can create a pipenv environment for your project based on the project requirements recorded in Pipfile.

For any of the configured Python interpreters (but Docker-based), you can: