How to install / import dependencies and execute Python file in Bluemix

This is my first time working with IBM bluemix and I am asking the following questions:

1) When we write a python program in the python GUI on our local desktop, we always install the required libraries via pip and import them into our code. But how do you do this in Bluemix?

import-from-python-library-on-bluemix is similar to my request, but I don't understand the process.

2) How to execute a .py file on Bluemix?

+1


source to share


1 answer


To run your application in Bluemix, you need to add a few files to the source file you click:



  • requirements.txt: python dependencies (this is not Bluemix specific, you should always have one, but you need it here)
  • Procfile: Contains the command to start your application.
  • manifest.yml: Describes the infrastructure / environment of the application.
  • (optional) runtime.txt: for the exact version of the python version used, if omitted, it uses the standard buildpack
+3


source







All Articles