pip Install Command Generator – Versions, Extras, Shells
NOVOpip install command generator: add packages with ==, >=, ~= versions and [extras], pick options and get a command quoted correctly for bash, PowerShell or cmd.
Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.
Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.
Command
python -m pip install 'requests[socks]>=2.31,<3' 'numpy~=1.26.0' fastapi 'uvicorn[standard]'
| requests[socks]>=2.31,<3 | with extras: socks; 2.31 or newer; older than 3 |
| numpy~=1.26.0 | compatible release: >=1.26.0, ==1.26.* |
| fastapi | latest compatible version |
| uvicorn[standard] | with extras: standard |
Exemplos rápidos
Entradas típicas e os resultados que esta ferramenta gera.
Visão geral
This pip install command generator builds a correct pip command from a list of packages. Each line can carry extras (fastapi[all]), version specifiers (==, >=, <=, !=, ~= and wildcards like ==2.2.*), several specifiers separated by commas, and environment markers. Every requirement is validated against the PEP 508 / PEP 440 rules and explained in plain words, so you can see that ~=1.26.0 means 1.26.0 or later but still 1.26.x.
The hard part is the shell. In bash and zsh, square brackets are glob characters and > is a redirect, so requests[socks]>=2.31 must be quoted; in PowerShell a comma builds an array and > also redirects; cmd.exe treats < > and | specially. Choose your shell and the tool adds exactly the quotes it needs, plus optional line continuations.
Options cover --upgrade, --user, --pre, --no-deps, --force-reinstall, --no-cache-dir, -r requirements files and custom or extra package indexes. Everything is generated in your browser.
Por que usar esta ferramenta?
- No more "no matches found" errors in zsh
- Correct quoting for bash, PowerShell and cmd
- Version specifiers validated before you run pip
- Plain-English meaning of every specifier
- Safer python -m pip by default
Recursos
Extras and versions
Parses name[extra1,extra2] with any PEP 440 specifiers and environment markers.
Shell-aware quoting
Single quotes for bash/zsh and PowerShell, double quotes for cmd, only where required.
Common options
--upgrade, --user, --pre, --no-deps, --force-reinstall, --no-cache-dir and -r file.
Custom indexes
--index-url and --extra-index-url with a dependency-confusion warning.
Validation
Invalid names, versions, misplaced wildcards and one-part ~= versions are reported.
Multi-line output
Optionally split long commands with \, ` or ^ line continuations.
Como usar
List the packages
Type one requirement per line, e.g. requests>=2.31 or uvicorn[standard].
Pick runner and shell
Choose python -m pip, py -m pip or pip and the shell you will paste into.
Tick the options
Add flags, a requirements file or a package index URL.
Copy the command
Press Copy and paste it into your terminal.