Hey Sumanta, It's correct to say that the App Engine Standard Environment <https://cloud.google.com/appengine/docs/standard/python/> for python doesn't support modules based on C code. just go head and write the non-linear CG algorithm <https://en.wikipedia.org/wiki/Nonlinear_conjugate_gradient_method> in pure python and attempt to run it, but there are two things to keep in mind:
* It seems you'd have to write it. I searched a bit and couldn't find any pre-made code for this. * scipy / numpy will be much faster. I recommend you either offload these computation problems to a Compute Engine <https://cloud.google.com/compute/> instance (possibly of micro instance class) or deploy an App Engine Flexible Environment <https://cloud.google.com/appengine/docs/flexible/python/> app where the Dockerfile <https://docs.docker.com/engine/reference/builder/> uses pip <https://pip.pypa.io/en/stable/> to install your requirements.txt <https://pip.readthedocs.io/en/1.1/requirements.html>, containing the dependencies, so that when the app is deployed, you have numpy and scipy. You can also find sample apps <https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/appengine/flexible> which install numpy and scipy in our github "python-docs-samples" repo (they're under "scipy" and "numpy"). Cheers, Nick Cloud Platform Community Support On Sunday, February 26, 2017 at 11:42:08 AM UTC-5, Sumanta Bhowmik wrote: > > I do not want to write a Non linear CG implementation on my own. As far > as I know, GAE(python) supports numpy but does not support scipy(which has > optimization). I did not come across a pure python implementation on the > net. But I am sure many people would have had similar requirements. Is > there some library that I can use on GAE? > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/737d12bc-fc4c-4b73-bda5-0f12bd984f5f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.