How to specify install order for python pip?

后端 未结 9 1520
[愿得一人]
[愿得一人] 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:37

    Sadly the upgrade suggestion won't work. If you read the other details in https://github.com/pypa/pip/issues/24 you will see why

    pip will build all packages first, before attempting to install them. So with a requirements file like the following

    numpy==1.7.1
    scipy==0.13.2
    statsmodels==0.5.0
    

    The build of statsmodels will fail with the following statement

    ImportError: statsmodels requires numpy
    

    The workaround given for manually calling pip for each entry in the requirements file (via a shell script) seems to be the only current solution.

提交回复
热议问题