alibaba / alibaba/euler

构建Docker镜像

Open
#197 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.9k
Forks
553
PR merge metrics
No merged PRs in 30d

Description

谢谢Euler团队的分享。

我在构建Docker镜像的时候,安装tensorflow的那一步会报错。
Downloading https://mirrors.aliyun.com/pypi/packages/51/ae/9840c4837c6f54034ac942b5344396e8c3d74686a9bd29beafdf633cc221/tensorboard-1.12.2-py2-none-any.whl (3.0MB)
Collecting numpy>=1.13.3 (from tensorflow==1.12)
/usr/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/connectionpool.py:860: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
/usr/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/connectionpool.py:860: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Downloading https://mirrors.aliyun.com/pypi/packages/ff/59/d3f6d46aa1fd220d020bdd61e76ca51f6548c6ad6d24ddb614f4037cf49d/numpy-1.17.4.zip (6.4MB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-lS7Krk/numpy/setup.py", line 31, in
raise RuntimeError("Python version >= 3.5 required.")
RuntimeError: Python version >= 3.5 required.

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lS7Krk/numpy/
The command '/bin/sh -c pip --no-cache-dir install tensorflow==1.12' returned a non-zero code: 1

系统是Ununtu 18,看起来是python版本和numpy版本冲突,请问这个要怎么解决呢?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Docker build step running `pip --no-cache-dir install tensorflow==1.12`, then inspect the image's Python version and the TensorFlow 1.12 and NumPy compatibility shown in the log. Done means the Docker image builds successfully without the NumPy `setup.py egg_info` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, numpy, python, tensorflow
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.