相关疑难解决方法(0)

如何在Google App Engine中包含第三方Python库?

如何在Google App Engine中添加第三方python库,这些库不是由Google提供的?我正在尝试在Google App Engine中使用BeautifulSoup而无法这样做.但我的问题是我想在Google App Engine中使用的任何库.

python google-app-engine

32
推荐指数
2
解决办法
2万
查看次数

使用Scikit学习谷歌应用引擎

我试图在谷歌应用程序引擎上部署python2.7应用程序.它使用了几个模块,如numpy,flask,pandas和scikit-learn.虽然我能够安装和使用其他模块.在项目的lib文件夹中安装scikit-learn会出现以下错误: -

回溯(最近一次调用最后一次):文件"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py",第240行,在Handle handler = _config_handle.add_wsgi_middleware(self ._LoadHandler())文件"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py",第299行,在_LoadHandler处理程序中,路径,错误= LoadObject(self. _handler)文件"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py",第85行,在LoadObject中obj = __import __(path [0])文件"/ base /data/home/apps/s~category-prediction-1247/v1.391344087004233892/deploynew.py",第6行,在导入sklearn文件中"/ base/data/home/apps/s~category-prediction-1247/v1 .391344087004233892/lib/sklearn/__ init__.py",第56行,来自.import __check_build文件"/base/data/home/apps/s~category-prediction-1247/v1.391344087004233892/lib/sklearn/__check_build/__init__.py",第46行,在raise_build_error中(e)文件"/ base/data /home/apps/s~category-prediction-1247/v1.391344087004233892/lib/sklearn/__check_build/__init__.py",第41行,在raise_build_error%s"""%(e,local_dir,''.join(dir_content) ).strip(),msg))ImportError:动态模块没有定义init函数(init_check_build)___________________________________________________________________________/base/data/home/apps/s~category-prediction-1247/v1.391344087004233892/lib/sklearn/__check_build的内容:setup.pyc __init__.py _check_build.so setup.py __init __.pyc ___________________________________________________________________________似乎scikit-learn还没有正确构建.如果你已经安装了scikit-learn from source,请不要忘记在使用之前构建软件包:运行python setup.py installmake在源目录中.如果您使用过安装程序,请检查它是否适合您的Python版本,操作系统和平台.

他们在谷歌应用引擎上使用scikit-learn的任何方式?

python google-app-engine python-2.7 scikit-learn

6
推荐指数
1
解决办法
1434
查看次数