有没有办法在pip中指定需求安装顺序?

时间:2015-10-07 14:04:31

标签: python pip ibm-cloud

我正在解决一些问题,其中某些依赖项未按正确顺序下载且失败。下面是我们尝试构建和部署到Bluemix时获得的输出。 Numpy之前已定义,但在scipy之后安装。

  Running setup.py install for blinker

     Running setup.py install for MongoKit

     Running setup.py install for Flask-Mail

     Running setup.py install for Flask-HTTPAuth

     Running setup.py install for passlib

     Running setup.py install for Werkzeug

     Running setup.py install for SQLAlchemy

     Running setup.py install for scipy

       Complete output from command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-n4PVQ_/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8q5cRa-record/install-record.txt --single-version-externally-managed --compile:

       Traceback (most recent call last):

         File "<string>", line 1, in <module>

         File "/tmp/pip-build-n4PVQ_/scipy/setup.py", line 237, in <module>

           setup_package()

         File "/tmp/pip-build-n4PVQ_/scipy/setup.py", line 225, in setup_package

           from numpy.distutils.core import setup

       ImportError: No module named numpy.distutils.core

       ----------------------------------------

       Command "/app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-n4PVQ_/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8q5cRa-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-n4PVQ_/scipy

暂存失败:Buildpack编译步骤失败

0 个答案:

没有答案