python导入pandas出错_构建d时如何解决python-pandas导入错误

嗨,我要为我的python代码构建一个docker,在运行docker时,我得到import pandas import错误,如下所示File "app.py", line 3, in

import pandas as pd

File "/usr/local/lib/python3.6/dist-packages/pandas/__init__.py", line 7, in

from pandas import hashtable, tslib, lib

File "pandas/src/numpy.pxd", line 865, in init pandas.hashtable

(pandas/hashtable.c:38266)

ValueError: numpy.ufunc has the wrong size, try recompiling

rahuls-MacBook-Pro-2:date inndata$ docker build -t inndata/dates

"docker build" requires exactly 1 argument.

See 'docker build --help'.

请帮助我诊断错误。在

我的要求文件:-在

^{pr2}$

我的docker文件FROM ubuntu:18.10

RUN apt-get update -y

RUN apt-get install -y python3 python3-dev python3-pip build-essential

RUN pip3 install uwsgi

RUN apt-get install vim -y

COPY ./ ./app

WORKDIR ./app

RUN python3 -m pip install --upgrade pip

RUN pip3 install -r requirements.txt

ENTRYPOINT ["python3"]

CMD ["app.py"]

在应用程序副本我有我的python代码。在

你可能感兴趣的:(python导入pandas出错_构建d时如何解决python-pandas导入错误)