Learn Before
Concept

Running Python Code with Pipenv Packages

In order to run python code that imports packages installed through pipenv, the recommended way to do this is to run

$ pipenv run python main.py

Using "pipenv run" ensures that all packages installed through pipenv are actually available to your python script/project. It is also possible to enter into a new shell with access to all of the installed packages in your project's virtual environment, through the command

$ pipenv shell

0

1

Updated 2021-05-25

Tags

Python Programming Language

Data Science