Search code examples
pythonibm-cloudwatson

ImportError in bluemix


i am making a python app in IBM bluemix,but when i pushed it,it had an error:

enter image description here

i found my python version is 2.7.10 ,so i thought maybe the reason is the too low,and i change the version to 3.5.1 in runtime.txt like this:

python-3.5.1

but it still didn't work and had the same error.I know I should install this package, but how can i install this in bluemix? Can anyone please give me a solution?


Solution

  • Yeah,I solved it. in bluemix, if you use some package that not as part of standard python package, you should write them in your requirements.txt, and then bluemix will download this package.