22
loading...
This website collects cookies to deliver better user experience
A package manager or package-management system is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer's operating system in a consistent manner.
A virtual environment is a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages.
$ pip install pipenv
$ mkdir my_project
$ cd my_project/
$ pipenv install
$ pipenv shell
$ exit
$ which python
$ import sys
$ sys.executable
$ pipenv --venv
$ pipenv install <package-name>
$ pipenv run python
$ pipenv run python <file-name>
$ pipenv install -r <path-of-requirements.txt>
$ pipenv lock -r
$ pipenv lock -r > requirements.txt
$ pipenv uninstall <package-name>
-all
flag.$ pipenv -rm
By default, pipenv install virtual environments at ~/.local/share/virtualenvs/
.
To install a package that shouldn't be included in production build we can use --dev
flag at end of install command.
To check security vulnerabilities in a virtual environment we can use following command :
$ pipenv check
.
All dependencies of project can be tracked using following command:
$ pipenv graph
.