|
|
|
|
|
by Rotareti
3040 days ago
|
|
Pipenv combines package management and virtualenv managment in one tool. You can create a new project as simple as this: $ mkdir myproj
$ cd myproj
$ pipenv --python 3.6 # This creates a virtualenv with Python 3.6 for you project.
$ pipenv install flask # This installs flask in your virtualenv.
$ pipenv run flask # This runs flask in your virtualenv.
$ pipenv run python # This runs a REPL with the interpreter of your venv.
$ pipenv shell # This opens a shell in your venv.
Pipenv replaces requirements.txt with Pipfile and Pipfile.lock. (Similar to what you get from npm or yarn in the JS world, and cargo in Rust)If you use pipenv for a project, you no longer need to care about pip, requirements.txt or virtualenv. Pipenv/Pipfile is the new standard recommended by Python.org/PyPA: https://packaging.python.org/tutorials/managing-dependencies... https://github.com/pypa/pipenv https://github.com/pypa/pipfile |
|
This is where pipenv delivers. It is a destillation of best practices for virtualenv-configuration.
In your overview, I'd just add an example for a dev installation