tell pip to install the dependencies of packages listed in a requirement file

前端 未结 5 1675
耶瑟儿~
耶瑟儿~ 2020-12-12 19:10

Developing a Django web app, I have a list of packages I need to install in a virtualenv. Say:

Django==1.3.1
--extra-index-url=http://dist.pinaxproject.com/         


        
5条回答
  •  我在风中等你
    2020-12-12 19:37

    Given your comment to the question (where you say that executing the install for a single package works as expected), I would suggest looping over your requirement file. In bash:

    #!/bin/sh
    while read p; do
      pip install $p
    done < requirements.pip
    

    HTH!

提交回复
热议问题