python导入pandas出错_构建d时如何解决python-pandas导入错误
嗨,我要為我的python代碼構(gòu)建一個(gè)docker,在運(yùn)行docker時(shí),我得到import pandas import錯(cuò)誤,如下所示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'.
請(qǐng)幫助我診斷錯(cuò)誤。在
我的要求文件:-在
^{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"]
在應(yīng)用程序副本我有我的python代碼。在
《新程序員》:云原生和全面數(shù)字化實(shí)踐50位技術(shù)專(zhuān)家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的python导入pandas出错_构建d时如何解决python-pandas导入错误的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: mysql audit log.so_P
- 下一篇: python的数值类型和运算符_pyth