Using “-t” option inside a requirements.txt file

前端 未结 2 1821
一整个雨季
一整个雨季 2021-01-24 15:45

When I have, for example, a requirements-dev.txt and a requirements.txt, I know I can have -r requirements.txt inside requirements-d

2条回答
  •  星月不相逢
    2021-01-24 15:56

    pip install -r requirements.txt -t /path/to/install
    

    This should work. It worked for me.

    If you want different modules to be installed to different locations, then I think you might have to put them into multiple requirements text files. This is at least as far as I know

提交回复
热议问题