mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 18:26:02 +02:00
pip-install: add page (#4983)
This commit is contained in:
parent
c1c8c1bcf3
commit
97bfd149cf
2 changed files with 21 additions and 9 deletions
20
pages/common/pip-install.md
Normal file
20
pages/common/pip-install.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# pip install
|
||||
|
||||
> Install Python packages.
|
||||
> More information: <https://pip.pypa.io>.
|
||||
|
||||
- Install a package:
|
||||
|
||||
`pip install {{package_name}}`
|
||||
|
||||
- Install a specific version of a package:
|
||||
|
||||
`pip install {{package_name}}=={{package_version}}`
|
||||
|
||||
- Install packages listed in a file:
|
||||
|
||||
`pip install -r {{requirements.txt}}`
|
||||
|
||||
- Install the local package in the current directory in develop (editable) mode:
|
||||
|
||||
`pip install -e .`
|
|
@ -3,14 +3,10 @@
|
|||
> Python package manager.
|
||||
> More information: <https://pip.pypa.io>.
|
||||
|
||||
- Install a package:
|
||||
- Install a package (see `pip install` for more install examples):
|
||||
|
||||
`pip install {{package_name}}`
|
||||
|
||||
- Install a specific version of a package:
|
||||
|
||||
`pip install {{package_name}}=={{package_version}}`
|
||||
|
||||
- Upgrade a package:
|
||||
|
||||
`pip install -U {{package_name}}`
|
||||
|
@ -23,10 +19,6 @@
|
|||
|
||||
`pip freeze > {{requirements.txt}}`
|
||||
|
||||
- Install packages from file:
|
||||
|
||||
`pip install -r {{requirements.txt}}`
|
||||
|
||||
- Show installed package info:
|
||||
|
||||
`pip show {{package_name}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue