Tensorflow: Erstellen einer bestimmten 3.6-BinĂ€rdatei fĂŒr Linux

Erstellt am 2. Nov. 2017  Â·  89Kommentare  Â·  Quelle: tensorflow/tensorflow

System Information

  • Habe ich benutzerdefinierten Code geschrieben (anstatt ein in TensorFlow bereitgestelltes Standard-Beispielskript zu verwenden) : Nein
  • Betriebssystemplattform und -verteilung (z. B. Linux Ubuntu 16.04) : Linux Ubuntu 14.04
  • TensorFlow installiert von (Quelle oder BinĂ€r) : Quelle
  • TensorFlow-Version (verwenden Sie den Befehl unten) :
  • Python-Version : Python3.6
  • Bazel-Version (wenn aus der Quelle kompiliert) :
  • GCC/Compiler-Version (wenn aus der Quelle kompiliert) : -NA-
  • CUDA/cuDNN-Version : -NA-
  • GPU-Modell und Speicher : -NA-
  • Genauer Befehl zum Reproduzieren : Tensorflow als tf . importieren

Text der Umgebungserfassung:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
tf_env.txt

Die TensorFlow-Version erhalten Sie mit
python -c "tensorflow als tf importieren; print(tf.GIT_VERSION, tf.VERSION)"
Auch dieser Befehl fĂŒhrt zu demselben Fehler.
/home/raju/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: Compiletime-Version 3.5 des Moduls 'tensorflow.python.framework.fast_tensor_util' passt nicht zur Laufzeitversion 3.6
RĂŒckgabe f( args, * kwds)

Beschreibe das Problem

Beim Importieren von tensorflow erhalte ich diesen Fehler. Ich fand einige Informationen zu "Funktionsanfrage: Nightly build for python 3.6 #12935" --"Ja, wir kopieren leider die 3.5-BinĂ€rdatei fĂŒr 3.6. Ich werde versuchen, eine bestimmte 3.6-BinĂ€rdatei fĂŒr Linux zu erstellen."

Quellcode / Protokolle

$tensorflow als tf importieren
Ergebnis ist
/home/raju/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: Compiletime-Version 3.5 des Moduls 'tensorflow.python.framework.fast_tensor_util' passt nicht zur Laufzeitversion 3.6
RĂŒckgabe f( args, * kwds)

awaiting tensorflower builinstall

Hilfreichster Kommentar

"Behobenes" Problem durch Erzwingen der Installation der Version 1.3.0 von tensorflow

$~/Downloads$ pip3 install tensorflow==1.3.0
Collecting tensorflow==1.3.0
  Downloading tensorflow-1.3.0-cp36-cp36m-manylinux1_x86_64.whl (43.5MB)
    100% |████████████████████████████████| 43.6MB 42kB/s 
Collecting six>=1.10.0 (from tensorflow==1.3.0)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting protobuf>=3.3.0 (from tensorflow==1.3.0)
  Using cached protobuf-3.4.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting wheel>=0.26 (from tensorflow==1.3.0)
  Using cached wheel-0.30.0-py2.py3-none-any.whl
Collecting numpy>=1.11.0 (from tensorflow==1.3.0)
  Using cached numpy-1.13.3-cp36-cp36m-manylinux1_x86_64.whl
Collecting tensorflow-tensorboard<0.2.0,>=0.1.0 (from tensorflow==1.3.0)
  Downloading tensorflow_tensorboard-0.1.8-py3-none-any.whl (1.6MB)
    100% |████████████████████████████████| 1.6MB 1.2MB/s 
Collecting setuptools (from protobuf>=3.3.0->tensorflow==1.3.0)
  Using cached setuptools-36.7.2-py2.py3-none-any.whl
Collecting werkzeug>=0.11.10 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow==1.3.0)
  Using cached Werkzeug-0.12.2-py2.py3-none-any.whl
Collecting markdown>=2.6.8 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow==1.3.0)
Collecting html5lib==0.9999999 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow==1.3.0)
Collecting bleach==1.5.0 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow==1.3.0)
  Using cached bleach-1.5.0-py2.py3-none-any.whl
Installing collected packages: six, setuptools, protobuf, wheel, numpy, werkzeug, markdown, html5lib, bleach, tensorflow-tensorboard, tensorflow
Successfully installed bleach-1.5.0 html5lib-0.9999999 markdown-2.6.9 numpy-1.13.3 protobuf-3.4.0 setuptools-36.7.2 six-1.11.0 tensorflow-1.3.0 tensorflow-tensorboard-0.4.0rc2 werkzeug-0.12.2 wheel-0.30.0
$~/Downloads$ python3
Python 3.6.3 (default, Oct  3 2017, 21:45:48) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
Using TensorFlow backend.
>>> 

Alle 89 Kommentare

gleiches Problem unter MacOS 10.12.6

gleiches Problem unter Linux Ubuntu 16.04

@gunan : Haben wir Updates zu den Ressourcen, die wir zur UnterstĂŒtzung von Python 3.6-Releases haben?

@av8ramit sieht so aus, als ob es Divergenzen gab, die uns daran hindern, dieselben Pip-Pakete fĂŒr Python 3.5 und 3.6 zu verwenden
Können wir unsere Builds so Àndern, dass sie auch die Version 3.6 von Grund auf neu erstellen?

Gleiches Problem unter Linux CentOS 7

Gleiches Problem nach dem Upgrade von Tensorflow von 1.3 auf 1.4 auf Mac High Sierra 10.13.1 mit Python 3.6.2.
Tensorflow funktioniert immer noch, gibt aber die obige Warnung aus: "RuntimeWarning: Compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' entspricht nicht der Laufzeitversion 3.6"

FWIW, Python3.5 funktioniert noch

Irgendetwas, das hier geÀndert werden kann?

Gleiches Problem mit virtualenv nach dem Upgrade von Ubuntu 17.04 auf 17.10.
/home/wiebe/virtual/tensorflow/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds)

Gleiches unter Ubuntu 14.04

Gleiches Problem bei Fedora 26 mit Python 3.6.2.

Gleiches Problem unter OSX 10.12.5 mit Python 3.6.3

Gleiches Problem unter OSX mit Python 3.6.2

Nur gepostet, weil ich meine Umgebung nicht erwÀhnt gesehen habe:
Saubere 17.10 Ubuntu Server-Installation auf Python 3.6.3 (nativ pip install tensorflow-gpu )
AusgÀnge:

/usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)

Ich habe sowohl 3.5 als auch 3.6 (macOS High Sierra) ausprobiert.
3.5 funktioniert perfekt, wÀhrend 3.6 warnt.
WĂ€hrend 3.6 noch funktioniert.

Hoffe das hilft.

gleiches Problem unter Linux Ubuntu 17.10

Saubere 17.10 Ubuntu Server-Installation auf Python 3.6.3 (native pip install tensorflow)

Gleiches Problem unter OSX 10.12.6 mit Python 3.6.3 (virtualenv-Installation)

Tensorflow als tf importieren
/Users/zhanghao/virtualenv/tensorflow/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: Compiletime-Version 3.5 des Moduls 'tensorflow.python.framework.fast_tensor_util' stimmt nicht mit Laufzeitversion 3.6 ĂŒberein
RĂŒckgabe f( args, * kwds)

Gleiches Problem mit dieser Docker-Datei https://github.com/christiangda/kerasvideo/blob/master/Dockerfile

Error:

import tensorflow as tf

/opt/conda/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)

Hallo,
Können Sie mir mitteilen, ob dies als Warnung behandelt und ignoriert werden muss?
Außerdem ist der Fehler
aus PyQt5 importieren Sie QtCore, QtGui, QtWidgets
ImportError: dlopen: kann kein Objekt mehr mit statischem TLS laden

Siehe den Traceback unten
Traceback (letzter Anruf zuletzt):
Datei "train.py", Zeile 51, in
from object_detection.builders import model_builder
Datei "/home/raju/anaconda3/envs/tensorflow/models/research/object_detection/builders/model_builder.py", Zeile 29, in
from object_detection.meta_architectures import ssd_meta_arch
Datei "/home/raju/anaconda3/envs/tensorflow/models/research/object_detection/meta_architectures/ssd_meta_arch.py", Zeile 31, in
from object_detection.utils import visual_utils
Datei "/home/raju/anaconda3/envs/tensorflow/models/research/object_detection/utils/visualization_utils.py", Zeile 24, in
import matplotlib.pyplot als plt
Datei "/home/raju/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", Zeile 113, in
_backend_mod, neuer_figure_manager, draw_if_interactive, _show = pylab_setup()
Datei "/home/raju/anaconda3/lib/python3.6/site-packages/matplotlib/backends/__init__.py", Zeile 60, in pylab_setup
[backend_name], 0)
Datei "/home/raju/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", Zeile 16, in
aus .backend_qt5-Import (
Datei "/home/raju/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", Zeile 18, in
import matplotlib.backends.qt_editor.figureoptions als figureoptions
Datei "/home/raju/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", Zeile 20, in
import matplotlib.backends.qt_editor.formlayout als formlayout
Datei "/home/raju/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/formlayout.py", Zeile 56, in
aus matplotlib.backends.qt_compat importiere QtGui, QtWidgets, QtCore
Datei "/home/raju/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", Zeile 137, in
aus PyQt5 importieren Sie QtCore, QtGui, QtWidgetsImportError: dlopen: kann kein Objekt mehr mit statischem TLS laden

Bitte lassen Sie mich wissen, wie Sie diesen Fehler beheben können. Oder wird es erst behoben, wenn die Warnung behoben ist!!

Dieselben Probleme unter Ubuntu 16.04 64bit virtualenv python3

Geht es kaputt oder kann ich die Warnung ignorieren?

Ziemlich seltsam, da die vorherige Version mit 3.6 (und seinen Paketen) gut funktioniert hat. Es scheint also, dass dies eine ziemlich einfache Lösung sein sollte?

gleiches Problem mit der gerade veröffentlichten Version 1.4...

Nur um zu dem hinzuzufĂŒgen, was @dsitnik gesagt hat, einfache Hallo Welt zum Reproduzieren auf Fedora 26 venv

$ cat requirements.txt 
bleach==1.5.0
enum34==1.1.6
html5lib==0.9999999
Markdown==2.6.9
numpy==1.13.3
protobuf==3.4.0
six==1.11.0
tensorflow==1.4.0
tensorflow-tensorboard==0.4.0rc2
Werkzeug==0.12.2
$ python --version
Python 3.6.2
$ cat app.py 
import tensorflow as tf

hello = tf.constant('Hello, TensorFlow!')
session = tf.Session()
print(session.run(hello))
$ python app.py 
/usr/lib64/python3.6/importlib/_bootstrap.py:205: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)
2017-11-07 16:41:00.517173: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2
b'Hello, TensorFlow!'

Gleiches Problem unter OSX 10.11.6 in einer virtuellen Anaconda-Umgebung mit Python 3.6.3 und dem Versuch, von TensorFlow 1.3 auf 1.4 zu aktualisieren.
Dieses Problem wurde vorĂŒbergehend umgangen, indem eine neue Anaconda-Umgebung mit Python 3.5.4 und Tensorflow 1.4 erstellt wurde, die einwandfrei funktioniert.

Das gleiche Problem auf MacOS High SierraWie wurde es gelöstGeben Sie mir den Befehl Not link

Gleiches Problem unter OSX 10.12.6 Sierra,
image

die Version:
image

Hoffe das hilft.

Ich arbeite daran, sowohl die Python3.6-BinÀrdatei als auch das git_version-Tag aufzulösen.

Ich habe eine Referenz von
https://github.com/tensorflow/tensorflow/issues/6533

$ python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
Collecting tensorflow==0.12.0 from https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
  Downloading https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl (38.4MB)
    100% |████████████████████████████████| 38.4MB 33kB/s 
Collecting protobuf==3.1.0 (from tensorflow==0.12.0)
  Downloading protobuf-3.1.0-py2.py3-none-any.whl (339kB)
    100% |████████████████████████████████| 348kB 1.4MB/s 
Requirement already up-to-date: six>=1.10.0 in ./virtualenvs/dl4cv/lib/python3.6/site-packages (from tensorflow==0.12.0)
Requirement already up-to-date: numpy>=1.11.0 in ./virtualenvs/dl4cv/lib/python3.6/site-packages (from tensorflow==0.12.0)
Requirement already up-to-date: wheel>=0.26 in ./virtualenvs/dl4cv/lib/python3.6/site-packages (from tensorflow==0.12.0)
Requirement already up-to-date: setuptools in ./virtualenvs/dl4cv/lib/python3.6/site-packages (from protobuf==3.1.0->tensorflow==0.12.0)
Installing collected packages: protobuf, tensorflow
  Found existing installation: protobuf 3.4.0
    Uninstalling protobuf-3.4.0:
      Successfully uninstalled protobuf-3.4.0
Successfully installed protobuf-3.1.0 tensorflow-0.12.0

$ python
Python 3.6.3 (default, Oct  4 2017, 06:09:15) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

$ python
Python 3.6.3 (default, Oct  4 2017, 06:09:15) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
Using TensorFlow backend.
>>> 

Gleiches Problem unter OSX 10.13.1 mit Python 3.6.3

gleiches Problem unter osx 10.12.6 mit Python 3.6.3

/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)

Ich habe jemand eine Lösung ich nehme es! :)

Richten Sie eine virtuelle Umgebung mit Python 3.5.0 ein

@aktivkohle Wir brauchen

gleiches Problem unter macOS 10.13.1 mit Python 3.6.3

/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)

habe das gleiche Problem unter macOS 10.12.6. Es scheint jedoch, dass wir diese Warnung ignorieren können. Warten auf eine Lösung!

Gleiches Problem mit Anaconda mit Python 3.6 unter Ubuntu 16.04 beim Upgrade von tensorflow-gpu 1.3

gleiches Problem unter Ubuntu 17.10, Python 3.6.
Können wir diese Warnung wirklich ignorieren?

Gleiches Problem bei Anaconda, Ubuntu 16.04, Python 3.6, Tensorflow-GPU

Gleiches Problem bei Anaconda, Ubuntu 16.04, Python 3.6, Tensorflow-CPU

Gleicher Fehler. Ich werde versuchen, zurĂŒckzukommen, um eine virtuelle Umgebung mit Python 3.5 einzurichten

Ich wĂŒnschte, GitHub hĂ€tte einen "Me Too"-Button ... Wie auch immer, ich auch.

Arch Linux, Pip env und native GPU-Installation. Python 3.6.

Ich sehe die gleiche Warnung mit Python 3.6 von conda. Auf dem Mac ist es nur eine Warnung, und die Dinge scheinen in Ordnung zu sein. Aber unter Linux sehe ich, dass import tensorflow import scipy.special auf seltsame Weise zerstört.

python -c 'import tensorflow as tf; import scipy.special'
/d1/hfm/deil/software/anaconda/envs/image-style-transfer/lib/python3.6/importlib/_bootstrap.py:205: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/d1/hfm/deil/software/anaconda/envs/image-style-transfer/lib/python3.6/site-packages/scipy/special/__init__.py", line 648, in <module>
    from ._ellip_harm import ellip_harm, ellip_harm_2, ellip_normal
  File "/d1/hfm/deil/software/anaconda/envs/image-style-transfer/lib/python3.6/site-packages/scipy/special/_ellip_harm.py", line 7, in <module>
    from ._ellip_harm_2 import _ellipsoid, _ellipsoid_norm
ImportError: cannot import name '_ellipsoid'

Ich denke, mein Scipy ist in Ordnung, zumindest funktioniert dieser Import, wenn ich Tensorflow nicht importiere:

python -c 'import scipy.special'

Scipy 1.0 wurde ĂŒber Anaconda installiert, tensorflow 1.4 ĂŒber pip:

$ conda list
scipy                     1.0.0            py36hbf646e7_0  
tensorflow                1.4.0                     <pip>

Gleiches Problem unter macOS 10.13 mit Python 3.6.3

/Users/mcukingdom007/tensorflow/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds)

Gibt es eine Problemumgehung oder einen Zeitplan, um dieses Problem zu lösen? Vielen Dank!

Ich stehe auch unter macOS 10.12.6 mit Python 3.6 vor dem gleichen Problem
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds)

Möglicherweise unterstĂŒtzt Tensorflow-1.4 Linux & macOS mit Python 3.6 nicht, daher scheint es einen Fehler zu geben.
Wenn Sie von v1.4 auf v1.3 downgraden, fĂŒhrt dies nicht zu einem Fehler.

Gleiches Problem unter macOS 10.13 mit Python 3.6.1

Ich habe auch das gleiche Problem, keine Anaconda-Installation ... nur mit pyenv und jupyter ... auf einem macOS Sierra Version 10.12.6 mit Python 3.6

Verwenden des TensorFlow-Back-Ends.

/Users/Create/.pyenv/versions/3.6.3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: Compiletime-Version 3.5 des Moduls 'tensorflow.python.framework.fast_tensor_util' stimmt nicht mit Laufzeitversion 3.6 ĂŒberein
RĂŒckgabe f( args, * kwds)

Gleiches Problem unter Ubuntu16.04.3 mit Python 3.6.3

Der Wechsel zu Python 3.5 hat die Warnung entfernt. Dazu musste ich Python 3.6 im Grunde komplett von meinem Rechner entfernen, da jupyter immer noch auf 3.6 zeigte, auch wenn es nur in 3.5-Paketen installiert war.

Ich bin dieser Antwort gefolgt, um Python 3.6 von meinem Computer zu entfernen (ersetzen Sie einfach alle Vorkommen von 2.7 durch 3.6 in dieser Antwort).

Ich habe dann sichergestellt, dass PYTHONPATH mit auf 3.5 gesetzt ist
export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.5/bin
Dann 3.6 aus PATH entfernen um
echo $PATH dann kopiere den gesamten Pfad
export PATH=pasteInThePathAndRemovePython3.6

Hoffentlich hilft das in der Zwischenzeit! Denken Sie daran, dass Sie alle Ihre Pakete fĂŒr Python 3.5 neu installieren mĂŒssen!

"Behobenes" Problem durch Erzwingen der Installation der Version 1.3.0 von tensorflow

$~/Downloads$ pip3 install tensorflow==1.3.0
Collecting tensorflow==1.3.0
  Downloading tensorflow-1.3.0-cp36-cp36m-manylinux1_x86_64.whl (43.5MB)
    100% |████████████████████████████████| 43.6MB 42kB/s 
Collecting six>=1.10.0 (from tensorflow==1.3.0)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting protobuf>=3.3.0 (from tensorflow==1.3.0)
  Using cached protobuf-3.4.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting wheel>=0.26 (from tensorflow==1.3.0)
  Using cached wheel-0.30.0-py2.py3-none-any.whl
Collecting numpy>=1.11.0 (from tensorflow==1.3.0)
  Using cached numpy-1.13.3-cp36-cp36m-manylinux1_x86_64.whl
Collecting tensorflow-tensorboard<0.2.0,>=0.1.0 (from tensorflow==1.3.0)
  Downloading tensorflow_tensorboard-0.1.8-py3-none-any.whl (1.6MB)
    100% |████████████████████████████████| 1.6MB 1.2MB/s 
Collecting setuptools (from protobuf>=3.3.0->tensorflow==1.3.0)
  Using cached setuptools-36.7.2-py2.py3-none-any.whl
Collecting werkzeug>=0.11.10 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow==1.3.0)
  Using cached Werkzeug-0.12.2-py2.py3-none-any.whl
Collecting markdown>=2.6.8 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow==1.3.0)
Collecting html5lib==0.9999999 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow==1.3.0)
Collecting bleach==1.5.0 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow==1.3.0)
  Using cached bleach-1.5.0-py2.py3-none-any.whl
Installing collected packages: six, setuptools, protobuf, wheel, numpy, werkzeug, markdown, html5lib, bleach, tensorflow-tensorboard, tensorflow
Successfully installed bleach-1.5.0 html5lib-0.9999999 markdown-2.6.9 numpy-1.13.3 protobuf-3.4.0 setuptools-36.7.2 six-1.11.0 tensorflow-1.3.0 tensorflow-tensorboard-0.4.0rc2 werkzeug-0.12.2 wheel-0.30.0
$~/Downloads$ python3
Python 3.6.3 (default, Oct  3 2017, 21:45:48) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
Using TensorFlow backend.
>>> 

Toll!!!

TensorFlow v1.4 funktioniert nicht mit Python3.6.
Wir sollten also TensorFlow v1.3 verwenden.
Vielen Dank fĂŒr Ihre tollen Informationen.

Dies ist die wichtigste Anleitung zum Installieren der py-Version und der tf-Version
https://github.com/lakshayg/tensorflow-build

Ich verwende MacOS High Sierra.
Ich habe versucht, TF v1.4 mit Python3.6.3 zu verwenden, aber RuntimeWarning wird angezeigt, wenn ich TF importiere.
Seien Sie also vorsichtig, wenn Sie High Sierra verwenden.

Ich finde, dass die GPU-Version (mit Nvidia) 1.4 unter Ubuntu Linux (py3.6) nach den Warnungen einwandfrei funktioniert.

Hier funktionieren 3.6 RĂ€der https://github.com/mind/wheels

Ich habe das gleiche Problem mit Clang 900.0.38, Python 3.6.3, tf 1.4.0. keine ahnung wie man das beheben kann.

Hier ist ein zeitlicher "Fix"

FĂŒr alle, die nach einer Problemumgehung suchen, haben wir mehrere Möglichkeiten:

  • Warten Sie auf die Veröffentlichung einer offiziellen BinĂ€rdatei fĂŒr Python 3.6
  • Ignorieren Sie die Warnung, es scheint zu funktionieren.
  • Verwenden Sie nicht Tensorflow 1.4.0, sondern 1.3.0 pip3 install tensorflow==1.3.0 .
  • Installieren Sie eine inoffizielle Tensorflow-BinĂ€rdatei, die mit Python 3.6 kompatibel ist, von lakshayg/tensorflow-build oder von mind/wheels .

Beispiel in Mac OS High Sierra mache ich:

$ pip install https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.0-cp36-cp36m-macosx_10_12_x86_64.whl

Hinweis: Achten Sie darauf, das richtige Rad fĂŒr Ihre Plattform auszuwĂ€hlen und wenn es mit CPU- oder GPU-UnterstĂŒtzung ausgestattet ist.

Gleiches Problem unter Ubuntu 16.04, Python 3.6.1, CPU-Version.
Die erzwungene Installation von TensorFlow 1.3 kann wie

Wann können wir mit dem offiziellen Build von TF 1.4.0 fĂŒr Python 3.6 rechnen? Die offiziellen Dokumente verweisen auf https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.4.0-cp36-cp36m-linux_x86_64.whl als Python 3.6-Version, aber ich erhalte immer noch die ursprĂŒngliche Warnung.

Als Workaround (in virtualenv) können wir Python 3.5 wie folgt verwenden.

virtualenv --system-site-packages -p /usr/bin/python3.5 ~/tensorflow/

>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()

Unter Mac OS hilft mir das: python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

tf-nightly und tf-nightly-gpu haben jetzt eine Python3.6-BinĂ€rdatei, die von Grund auf fĂŒr Linux erstellt wurde.
1.5.0-dev20171206 und höher

Dies sollte die Warnung beheben

Gleiches Problem unter MacOS 10.11.6 mit Python 3.6.1

Ich habe tf_nightly_gpu-1.5.0.dev20171213-cp36-cp36m-manylinux1_x86_64.whl erfolgreich installiert.
Ubuntu17.10 x64.
Tensorflow sucht nach cuda-9.0, aber ich habe cuda-8.0 installiert. funktioniert tf_1.5.0 mit cuda-8.0?
Ich habe cuda-8.0 installiert. Ich kann es im Bibliothekspfad sehen. Jede Hilfe, um dieses Problem zu lösen, wird sehr geschÀtzt.

screenshot from 2017-12-15 01-44-45

screenshot from 2017-12-15 01-42-30

screenshot from 2017-12-15 01-59-36

Es folgt ein Traceback fĂŒr Fehler

ImportError Traceback (letzter Aufruf zuletzt)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py in()
57
---> 58 von tensorflow.python.pywrap_tensorflow_internal import *
59 von tensorflow.python.pywrap_tensorflow_internal import __version__

/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py in()
27 zurĂŒck _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper

/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py in swig_import_helper()
23 versuchen:
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, Pfadname, Beschreibung)
25 endlich:

/usr/lib/python3.6/imp.py in load_module(Name, Datei, Dateiname, Details)
242 sonst:
--> 243 return load_dynamic(name, filename, file)
244 elif-Typ_ == PKG_DIRECTORY:

/usr/lib/python3.6/imp.py in load_dynamic(Name, Pfad, Datei)
342 name=name, loader=loader, origin=pfad)
--> 343 return _load(spec)
344

ImportError: libcublas.so.9.0: Shared Object File kann nicht geöffnet werden: No such file or directory

WĂ€hrend der Behandlung der obigen Ausnahme ist eine weitere Ausnahme aufgetreten:

ImportError Traceback (letzter Aufruf zuletzt)
in()
----> 1 Tensorflow als tf . importieren

/usr/local/lib/python3.6/dist-packages/tensorflow/__init__.py in()
22
23 # pylint: disable=wildcard-import
---> 24 von tensorflow.python import *
25 # pylint: enable=wildcard-import
26

/usr/local/lib/python3.6/dist-packages/tensorflow/python/__init__.py in()
47 numpy als np importieren
48
---> 49 von tensorflow.python import pywrap_tensorflow
50
51 # Protokollpuffer

/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py in()
71 aus einigen gĂ€ngigen GrĂŒnden und Lösungen. Den gesamten Stack-Trace einschließen
72 ĂŒber dieser Fehlermeldung, wenn Sie um Hilfe bitten.""" % traceback.format_exc()
---> 73 ImportError(msg) erhöhen
74
75 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long

ImportError: Traceback (letzter Aufruf zuletzt):
Datei "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", Zeile 58, in
von tensorflow.python.pywrap_tensorflow_internal import *
Datei "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", Zeile 28, in
_pywrap_tensorflow_internal = swig_import_helper()
Datei "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", Zeile 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, Pfadname, Beschreibung)
Datei "/usr/lib/python3.6/imp.py", Zeile 243, in load_module
return load_dynamic(Name, Dateiname, Datei)
Datei "/usr/lib/python3.6/imp.py", Zeile 343, in load_dynamic
return _load(spez)
ImportError: libcublas.so.9.0: Shared Object File kann nicht geöffnet werden: No such file or directory

Fehler beim Laden der nativen TensorFlow-Laufzeit.

Siehe https://www.tensorflow.org/install/install_sources#common_installation_problems

aus einigen gĂ€ngigen GrĂŒnden und Lösungen. Den gesamten Stack-Trace einschließen
ĂŒber dieser Fehlermeldung, wenn Sie um Hilfe bitten.

​

Habe gerade Python 3.6 unter Ubuntu 16.04 installiert. Dann:

~$ python3.6 -m pip install --user tensorflow
Sammeln von Tensorflow
Herunterladen von tensorflow-1.4.1-cp36-cp36m-manylinux1_x86_64.whl (41,2 MB)
100 % |████████████████████████████████| 41,2 MB 52 kB/s

und so weiter...

Dann:

~$ python
Python 3.6.3 (Standard, 4. Oktober 2017, 02:55:45)
Geben Sie „Copyright“, „Credits“ oder „Lizenz“ ein, um weitere Informationen zu erhalten
IPython 6.2.1 -- Ein verbessertes interaktives Python. Typ '?' fĂŒr Hilfe.

In [1]: Tensorflow als tf . importieren
/usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: Compiletime-Version 3.5 des Moduls 'tensorflow.python.framework.fast_tensor_util' passt nicht zur Laufzeitversion 3.6
RĂŒckgabe f( args, * kwds)

In [2]: hello = tf.constant('Hallo TensorFlow!')

In [3]: Sitzung = tf.Session()
2017-12-15 15:53:35.523688: I tensorflow/core/platform/cpu_feature_guard.cc:137] Ihre CPU unterstĂŒtzt Anweisungen, dass diese TensorFlow-BinĂ€rdatei nicht fĂŒr die Verwendung kompiliert wurde: SSE4.1 SSE4.2 AVX AVX2 FMA

In [4]: ​​print(session.run(hallo))
b'Hallo TensorFlow!'

Ich gehe also davon aus, dass dies gut funktioniert und diese Warnung mit der Version 1.5 oder möglicherweise einer 1.4.2-Version verschwindet.

Übrigens habe ich diese Warnung in Windows7 mit tensorflow-gpu Version 1.4.0 mit Python 3.6.2 nicht bemerkt

Gleiches Problem unter Ubuntu 16.04 LTS.

Gleicher Fehler.

Gleiches Problem unter Ubuntu 16.04 LTS.

Wir bieten in absehbarer Zeit keine native Python3.6-BinĂ€rdatei fĂŒr Mac an.

Was das cuda9-Problem betrifft, wird tf-nightly jede Nacht von HEAD at master erstellt, und ich glaube, die neuesten BinÀrdateien erfordern cuda9. Versuchen Sie es mit einer Àlteren Version von tf-nightly. (Vielleicht 1208 oder so)

Windows verfĂŒgt ĂŒber eine native Python3.6-BinĂ€rdatei, sodass dieses Problem nicht angezeigt wird.

Danke @av8ramit

FĂŒr diejenigen, die die (willkĂŒrliche) Vorliebe haben, nur offizielle Releases zu verwenden, ist Folgendes richtig?

  • Sie mĂŒssen auf 1.5.x warten, bis diese Warnmeldung verschwindet, wenn Sie Python 3.6 unter Linux verwenden
  • In der Zwischenzeit können Sie 1.4.1 problemlos verwenden, Sie sehen nur die Warnmeldung

Das gleiche Problem tritt auf, wenn ich Anaconda 3-5.0.1-Linux-x86_64.sh(Python3.6) und TensorFlow 1.4 verwende.

Soweit es sich lohnt, wurde das Problem in einem Hacker-News-Thread zur Version 1.4 (https://news.ycombinator.com/item?id=15647790) diskutiert. Benutzer allenlavoie hat geantwortet:

Es ist nur ein kleines, von Cython kompiliertes Dienstprogramm, das die Warnung ausgibt, es funktioniert gut. Alles andere ist reines Python und kĂŒmmert sich also nicht um 3.5 vs 3.6. Wir werden die Warnung jedoch beheben (Haftungsausschluss: Ich arbeite an TF und fĂŒgte fast_tensor_utils hinzu--sorry!).

Liebes Tensorflow-QA-Team. Bitte fĂŒgen Sie einige Unit-Tests hinzu!!! Frohes NY

Sie können WHL mithilfe der folgenden Linkschritte aus der Quelle erstellen. http://www.python36.com/install-tensorflow141-gpu/ . Lass mich informieren ob es geklappt hat.

Nörgelnder Beauftragter: Es sind 14 Tage ohne AktivitÀt vergangen und dieses Problem hat einen Beauftragten. Bitte aktualisieren Sie das Label und/oder den Status entsprechend.

Offizielle Releases (1.5+) haben jetzt ein natives Python3.6-Image-Build auf Ubuntu 16.04. Wir erstellen keine Python3.6-spezifische BinĂ€rdatei fĂŒr Mac. Windows hat auch native 3.6.

@av8ramit , ich habe 1.4.1 und du jetzt offizielle Releases gibt .... noch,

Wenn ich das tue:
python3.6 -m pip install --upgrade --user tensorflow

Es steht dass:
Requirement already up-to-date: tensorflow in ./.local/lib/python3.6/site-packages

Sie können Python3.6-spezifische BinĂ€rdateien fĂŒr Mac/Linux/Windows von hier erhalten:
https://pypi.python.org/pypi/tensorflow

@av8ramit Ich habe das Manylinux-Rad 1.5.0rc1 cp36 manuell heruntergeladen und erfolgreich installiert. Die Warnmeldung ist beim Importieren von Tensorflow in Python 3.6 verschwunden

Ich denke jedoch, dass es ein Problem mit Pip gibt. Siehe bitte unten. Soll ich eine neue Ausgabe starten oder mache ich nur etwas falsch?

Wenn ich das tue:
python3.6 -m pip install --upgrade --user tensorflow -vvv

Es findet das 1.5.0rc1 cp36 Manylinux-Rad sowie rc0 und Àltere VersionsrÀder (sowohl rc als auch nicht-rc):

Found link https://pypi.python.org/packages/cd/e4/b2a8bcd1fa689489050386ec70c5c547e4a75d06f2cc2b55f45463cd092c/tensorflow-1.1.0-cp36-cp36m-manylinux1_x86_64.whl#md5=1f761290358dfb7fe4ec73140f4d282a (from https://pypi.python.org/simple/tensorflow/), version: 1.1.0
...
Found link https://pypi.python.org/packages/c6/1c/d64f9367cc3a50194e911ab9da865c2515cbc1fefa5e210ddebf85a61bac/tensorflow-1.2.0rc0-cp36-cp36m-manylinux1_x86_64.whl#md5=8a637f414bc16c86708c01f17c94f3f6 (from https://pypi.python.org/simple/tensorflow/), version: 1.2.0rc0
...
Found link https://pypi.python.org/packages/fe/7d/01c588ba060e5e7dffe64ab968745d143530c84da30296f9593f661ca27d/tensorflow-1.5.0rc0-cp36-cp36m-manylinux1_x86_64.whl#md5=6578302e0c843660464cc16ad45d6093 (from https://pypi.python.org/simple/tensorflow/), version: 1.5.0rc0
...
Found link https://pypi.python.org/packages/4e/50/87e3c6861957413deb5ccd62aee6cea85cc2eedcf6391183595191d3c87d/tensorflow-1.5.0rc1-cp36-cp36m-manylinux1_x86_64.whl#md5=501d5072275518056aa5a5f25a001015 (from https://pypi.python.org/simple/tensorflow/), version: 1.5.0rc1

aber am ende meldet sich das irgendwie nicht bei pip als aktuellste version:

Installed version (1.4.1) is most up-to-date (past versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.4.1)
Requirement already up-to-date: tensorflow in ./.local/lib/python3.6/site-packages

Ich kann mich völlig irren, aber es scheint, dass pip die Versionen mit rc in der Versionsnummer nicht abfĂ€ngt. Ich weiß nicht, ob dies der Fehler von pip oder tensorflow ist, aber es scheint ein Problem zu sein. Oder liege ich falsch?

@tylerlekang pip holt standardmĂ€ĂŸig die neueste stabile Version (siehe https://pip.pypa.io/en/stable/reference/pip_install/#pre-release-versions)
und das pypi-Paket von tensorflow ist immer noch ein Release-Kandidat (1.5.0rc1)

versuche es mit:
pip install 'tensorflow>=1.5.0rc1'

@attiasr Oh! Tja ... das ist peinlich!

Wie lange dauert es, bis rc stabil wird, und gibt es normalerweise Änderungen, wenn sie als rc veröffentlicht wurden? Nun, ich denke, ich kann meine eigene Frage damit beantworten, dass es bereits rc0 und rc1 von 1.5.0 gab .....

Danke!

@tylerlekang z.B.

Danke @Karthick333031 bei mir

LÀuft: pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.0-py3-none-any.whl das Problem gelöst

Python 3.6.5
TensorFlow 1.10.0 (war vorher 1.10.1 )
MacOS 10.14

Danke,

@umang6891! Es hat das Problem fĂŒr mich gelöst. Mit der Warnung hĂ€ngte mein Beispiel fĂŒr immer ohne Fehler, aber jetzt lĂ€uft es. Es sieht so aus, als ob das Problem die Version in pip ist.

screenshot 2018-08-24 23 38 35 👍

Die Lösung von @ umang6891 funktioniert gut fĂŒr mich, und ich verwende eine Python3.6 virtualenv.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen