尝试在requirements.txt中的openshift中构建python应用程序时出错

时间:2019-02-17 22:56:22

标签: python flask openshift minishift

我对python Web应用程序不熟悉。我正在尝试在Openshift容器上构建和部署我的应用程序。但这是由于requirements.txt引发的错误。 以下是我的日志。 很高兴有人可以指点!

我基本上是在尝试构建一个用于上传和处理数据文件的应用。 应用程序github链接为:https://github.com/hanvitha92/UtilityToProcessData

requirements.txt:

gunicorn
Flask
flask_restful
xlrd
pandas

错误消息:

Complete output from command python setup.py egg_info: Traceback (most recent call last): File "/opt/app-root/lib/python3.5/site-packages/pkg_resources/__init__.py", line 433, in get_provider module = sys.modules[moduleOrReq] KeyError: 'numpy' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 20, in <module> File "/tmp/pip-build-mvq1efv9/pandas/setup.py", line 732, in <module> ext_modules=maybe_cythonize(extensions, compiler_directives=directives), File "/tmp/pip-build-mvq1efv9/pandas/setup.py", line 475, in maybe_cythonize numpy_incl = pkg_resources.resource_filename('numpy', 'core/include') File "/opt/app-root/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1160, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File "/opt/app-root/lib/python3.5/site-packages/pkg_resources/__init__.py", line 435, in get_provider
__import__(moduleOrReq) ImportError: No module named 'numpy'
---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-mvq1efv9/pandas You are using pip version 7.1.2, however version 19.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. error: build error: non-zero (13) exit code from
172.30.1.1:5000/openshift/python@sha256:3dcb46be7bcc22a43f64ac078c8abe8e1ddafff729df39775052cbf1d0eef215

0 个答案:

没有答案