How to use setup.py to install dependencies only?

前端 未结 2 1569
离开以前
离开以前 2021-02-13 12:22

I am not interested in installing my package itself but I am interested installing all the dependencies used by my package. Is there a way to do this using setup.py

相关标签:
2条回答
  • 2021-02-13 12:48

    Use the -e flag on pip install

    pip install -e .
    
    0 讨论(0)
  • 2021-02-13 13:12

    The only way I've found to reliably do this in a straightforward manner is this:

    pip install . && pip uninstall `python setup.py --name`
    
    0 讨论(0)
提交回复
热议问题