Specify extras_require with pip install -e

前端 未结 3 1838
迷失自我
迷失自我 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:56

    Important to notice: you should not have whitespaces around or within brackets. I.e. this won't work: -e ". [extra1, extra2]" - and even as a row in requirements.txt file, where it is not so obvious. The worst thing about it is that when you have whitespace, extras are just silently ignored.

提交回复
热议问题