gpt4 book ai didi

IBM Bluemix 上的 Python 应用程序/推送命令 list 中缺少依赖项

转载 作者:行者123 更新时间:2023-12-01 03:32:19 25 4
gpt4 key购买 nike

如何修改 list 以便使用默认构建包 (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 也有类似的问题,从文档来看,您不在 list 文件中处理该问题,而是在应用程序根目录的 runtime.txt 中处理,它只包含 python-3.5.1 对我来说,所以对你来说一定是 python-2.7.11

关于IBM Bluemix 上的 Python 应用程序/推送命令 list 中缺少依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40767181/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com