Specify extras_require with pip install -e

前端 未结 3 1811
迷失自我
迷失自我 2020-12-09 07:11

How can one manage to install extras_requires with pip when installing from a git repository ?

I know that you can do pip install project[extra] when th

3条回答
  •  一向
    一向 (楼主)
    2020-12-09 07:55

    This also works when installing from a whl file so, for example, you can do:

    pip install path/to/myapp-0.0.1-py3-none-any.whl[extra1]
    

    This is very far from clear from the docs, and not particularly intuitive.

提交回复
热议问题