How to specify install order for python pip?

后端 未结 9 1514
[愿得一人]
[愿得一人] 2020-11-30 02:22

I\'m working with fabric(0.9.4)+pip(0.8.2) and I need to install some python modules for multiple servers. All servers have old version of setuptools (0.6c8) which needs to

9条回答
  •  借酒劲吻你
    2020-11-30 02:57

    This is a silly hack, but might just work. Write a bash script that reads from your requirements file line by line and runs the pip command on it.

    #!/bin/bash
    for line in $(cat requirements.txt)
    do
      pip install $line -E /path/to/virtualenv
    done
    

提交回复
热议问题