简体   繁体   中英

what's the poetry equivalent of pip install 'python-lsp-server[all]'?

In the page about the python lsp server there are examples about how to install it in an env based on pip; like

pip install 'python-lsp-server[all]'

or

pip install 'python-lsp-server[yapf]'

How do I get the same with Poetry?

Use --extras argument:

poetry install python-lsp-server --extras "yapf", "flake8"

As an alternative use -E argument:

poetry install python-lsp-server -E yapf -E flake8

Source

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM