Install optional extras defined by a package.
Section: Extras, Editable, and Local Installs
Install package extras
bash
bash
python -m pip install "requests[socks]"Explanation
Extras activate optional dependency sets defined by the package.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Extras, Editable, and Local Installs
Install editable project with extras
Install a project in editable mode with optional dependency groups.
Install current project in editable mode
Install a local project with editable imports.
Install all wheels from a directory
Install wheel artifacts stored in a local folder.