<p dir="auto">alpine 3.5 python 2.7<br>
Installing tensorflow using pip succesfully, but after <code class="notranslate">import</code> tensorflow` I got this</p>
<blockquote>
<p dir="auto">ImportError: Error relocating /usr/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal<br>
.so: __sprintf_chk: symbol not found</p>
</blockquote>
<h1 dir="auto">OS</h1>
<p dir="auto">Host: Windows 10 Professional  64bit<br>
Docker container :  Alpine<br>
<code class="notranslate">/ # cat /etc/issue</code><br>
Welcome to Alpine Linux 3.6<br>
Kernel \r on an \m (\l)</p>
<p dir="auto"><code class="notranslate">/ # uname -a</code><br>
Linux 3b851449cb60 4.9.27-moby <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115886302" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1">#1</a> SMP Thu May 11 04:01:18 UTC 2017 x86_64 Linux</p>
<h1 dir="auto">Installation</h1>
<ul dir="auto">
<li>Part of my dockerfile</li>
</ul>
<p dir="auto"><code class="notranslate">FROM frolvlad/alpine-glibc</code><br>
<code class="notranslate">RUN apk update &amp;&amp; apk add --no-cache \ wget ca-certificates unzip vim git \ gcc g++ python python-dev py-numpy-dev &amp;&amp; \ apk add --no-cache --virtual=build-dependencies \ libffi-dev libressl-dev zlib-dev jpeg-dev freetype-dev libpng-dev </code></p>
<p dir="auto"><code class="notranslate">RUN wget https://bootstrap.pypa.io/get-pip.py &amp;&amp; \ python get-pip.py &amp;&amp; rm get-pip.py &amp;&amp; \ ln -s /usr/include/locale.h /usr/include/xlocale.h &amp;&amp; \ pip --no-cache-dir install requests[security] ipykernel jupyter matplotlib scipy scikit-learn pandas seaborn \ https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.0rc1-cp27-none-linux_x86_64.whl &amp;&amp; \ python -m ipykernel.kernelspec </code></p>
<p dir="auto">The dockerfile was built successfully. But when <code class="notranslate">import tensorflow</code> in a container , the following happened</p>
<blockquote>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/usr/lib/python2.7/site-packages/tensorflow/<strong>init</strong>.py", line 24, in <br>
from tensorflow.python import *<br>
File "/usr/lib/python2.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow<br>
File "/usr/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <br>
raise ImportError(msg)<br>
ImportError: Traceback (most recent call last):<br>
File "/usr/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "/usr/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "/usr/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
ImportError: Error relocating /usr/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: __sprintf_chk: symbol<br>
not found<br>
Failed to load the native TensorFlow runtime.</p>
</blockquote>