-
Notifications
You must be signed in to change notification settings - Fork 287
Description
Hi, everyone, I am new to docker and as I was building my first image in docker by the following command -
docker build -t money_api .
I got this error:
#9 77.84 Collecting pyarrow; python_version < "3.9" (from streamlit->-r requirements.txt (line 13))
#9 79.77 Downloading https://files.pythonhosted.org/packages/62/d3/a482d8a4039bf931ed6388308f0cc0541d0cab46f0bbff7c897a74f1c576/pyarrow-3.0.0.tar.gz (682kB)
#9 81.74 Complete output from command python setup.py egg_info:
#9 81.74 Traceback (most recent call last):
#9 81.74 File "", line 1, in
#9 81.74 File "/tmp/pip-build-_aju5a4y/pyarrow/setup.py", line 44, in
#9 81.74 raise Exception('Please upgrade to Cython 0.29 or newer')
#9 81.74 Exception: Please upgrade to Cython 0.29 or newer
#9 81.74
#9 81.74 ----------------------------------------
#9 82.02 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_aju5a4y/pyarrow/
#9 84.52 You are using pip version 9.0.1, however version 21.1 is available.
#9 84.52 You should consider upgrading via the 'pip install --upgrade pip' command.
executor failed running [/bin/sh -c pip install -r requirements.txt]: exit code: 1
I tried commands to upgrade my pip but nothing happened.
In my requirements file these are the elements-
Flask==1.1.1
gunicorn==19.9.0
itsdangerous==1.1.0
Jinja2==2.10.1
MarkupSafe==1.1.1
Werkzeug==0.15.5
numpy>=1.9.2
scipy>=0.15.1
scikit-learn==0.22.1
matplotlib>=1.4.3
pandas>=0.19
flasgger==0.9.4
streamlit
In my Docker file, I have written -
FROM continuumio/anaconda3:4.4.0
COPY . /usr/app/
EXPOSE 5000
WORKDIR /usr/app/
RUN pip install -r requirements.txt
CMD python flask_api.py
I am working on Windows 10 Pro N, with Python 3.7.