Неверная версия Numpy или Scipy или Scikit-Learn - PullRequest
0 голосов
/ 11 февраля 2019

На образе Ubuntu 16.04 в Docker-контейнере я пытаюсь установить:

FROM ubuntu:16.04

MAINTAINER Amazon AI <sage-learner@amazon.com>

RUN apt-get -y update && apt-get install -y --no-install-recommends \
         wget \
         python3.5 \
         nginx \
         libgcc-5-dev \
         ca-certificates \
    && rm -rf /var/lib/apt/lists/*

# Here we get all python packages.
# There's substantial overlap between scipy and numpy that we eliminate by
# linking them together. Likewise, pip leaves the install caches populated which uses
# a significant amount of space. These optimizations save a fair amount of space in the
# image, which reduces start up time.
RUN wget https://bootstrap.pypa.io/3.3/get-pip.py && python3.5 get-pip.py && \
    pip3 install numpy==1.14.3 scipy scikit-learn==0.19.1 xgboost==0.72.1 pandas==0.22.0 flask gevent gunicorn && \
        (cd /usr/local/lib/python3.5/dist-packages/scipy/.libs; rm *; ln ../../numpy/.libs/* .) && \
        rm -rf /root/.cache

Но я получаю эту ошибку:

2019-02-11 06:40:42 Starting - Starting the training job...
2019-02-11 06:40:45 Starting - Launching requested ML instances......
2019-02-11 06:42:13 Starting - Preparing the instances for training......
2019-02-11 06:43:16 Downloading - Downloading input data
2019-02-11 06:43:16 Training - Training image download completed. Training in progress...
Traceback (most recent call last):
  File "/opt/program/train", line 13, in <module>
    from sklearn import tree
  File "/usr/local/lib/python3.5/dist-packages/sklearn/__init__.py", line 64, in <module>
    from .base import clone
  File "/usr/local/lib/python3.5/dist-packages/sklearn/base.py", line 13, in <module>
    from .utils.fixes import signature
  File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/__init__.py", line 16, in <module>
    from .fixes import _Sequence as Sequence
  File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/fixes.py", line 85, in <module>
    from scipy.special import boxcox  # noqa
  File "/usr/local/lib/python3.5/dist-packages/scipy/special/__init__.py", line 641, in <module>
    from ._ufuncs import *
ImportError: libopenblasp-r0-8dca6697.3.0.dev.so: cannot open shared object file: No such file or directory

Я не знаю, является лиПроблема возникла в версии Scikit-Learn или NumPy или Scipy.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...