Decide on your Python and Cloud Foundry Stack versions
First, let’s explore the Python runtimes that are available on Bluemix.
- Open a web browser and open the Bluemix console on https://console.ng.bluemix.net/.
- In the Bluemix catalog, note the two starting points for Python. The first is the Python Flask boilerplate.
The second is the Python runtime.
The second is the Python
- Click either to see the landing page for Python.
- Click VIEW DOCS.
The documentation describes how to get started and download starter code. It also shows you how to specify a Python version and which runtime versions are available. Take note of these versions.
Over time, newer versions are added to the list with newer versions sliding in from the right and older versions sliding off on the left. When you develop a new application, you will probably select the version to the right or one that matches the version of Python that you installed. When your application is operational, you will want to future-proof it so that on a restart (or code update), it continues to work.
- Click the Python buildpack link. You should always control which buildpack is being used. The Python buildpack link takes you to GitHub.
- In GitHub, click releases to see a list of the stable builds.
- Select an appropriate release and also note the supported cf_stacks. The cf_stack defines the machine or server that the runtime will be deployed to. Like the supported versions of Python, the stack that is supported by Bluemix changes over time. In particular, you need to be aware of the default Bluemix stack.