0

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

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

要求.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
4

0 回答 0