簡體   English   中英

在Push Command的清單中缺少IBM Bluemix上的Python應用程序/依賴項

[英]Python Application on IBM Bluemix / Dependency Missing in Manifest at Push Command

我如何修改清單以使用默認build-pack(2.7.11)支持的最新2.7 Python版本並將我的應用程序推送到Bluemix托管服務器,為什么它解決了舊版本2.7.6?

我的命令是:

cf push myapp -m 128 -c“ python server.py”

請參見以下結果錯誤:

C:\Python\myprojects\ABC>cf push myapp -m 128M -c "python server.py"

-----> Downloaded app package (6.2M)
    -------> Buildpack version 1.5.5
 !     Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.
 !     Learn more: https://devcenter.heroku.com/articles/procfile
-----> Installing python-2.7.6
DEPENDENCY MISSING IN MANIFEST: python 2.7.6
It looks like you're trying to use python 2.7.6.
Unfortunately, that version of python is not supported by this buildpack.
The versions of python supported in this buildpack are:
- 3.5.1
- 3.5.0
- 3.4.4
- 3.4.3
- 3.3.6
- 3.3.5
- 2.7.11
- 2.7.10
If you need further help, start by reading: http://github.com/cloudfoundry/python-buildpack/releases.
Staging failed: Buildpack compilation step failed

python3也有類似的問題,在清單文件中您沒有處理它的文檔,但是在應用程序根目錄下的runtime.txt中,它對我來說只包含python-3.5.1 ,因此它必須是python-2.7.11為您。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM