Description
System information
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 14.04
- TensorFlow installed from (source or binary): Source
- TensorFlow version (use command below):
- Python version: Python3.6
- Bazel version (if compiling from source):
- GCC/Compiler version (if compiling from source): -NA-
- CUDA/cuDNN version: -NA-
- GPU model and memory: -NA-
- Exact command to reproduce: import tensorflow as tf
Environment capture text:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
tf_env.txt
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
This command also results in the same error.
/home/raju/anaconda3/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)
Describe the problem
When importing tensorflow , I get this error. I found some information on "Feature request: nightly build for python 3.6 #12935" --"Yes, we unfortunately copy the 3.5 binary for 3.6 I'll look into creating a specific 3.6 binary for Linux."
Source code / logs
$import tensorflow as tf
result is
/home/raju/anaconda3/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)
Activity
jbboisseau commentedon Nov 2, 2017
same issue on MacOS 10.12.6
rfarouni commentedon Nov 2, 2017
same problem on Linux Ubuntu 16.04
asimshankar commentedon Nov 2, 2017
@gunan : Do we have any updates on the resources we have to support Python 3.6 releases?
gunan commentedon Nov 2, 2017
@av8ramit looks like there were divergences which prevent us from using the same pip packages on python 3.5 and 3.6
Can we modify our builds to also build 3.6 version from scratch?
YannDubs commentedon Nov 3, 2017
Same issue on Linux CentOS 7
knn1989 commentedon Nov 3, 2017
Same issue after upgrade Tensorflow from 1.3 to 1.4 on Mac High Sierra 10.13.1 using Python 3.6.2.
Tensorflow still works but give the above warning which is "RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6"
MichaelSnowden commentedon Nov 3, 2017
FWIW, python3.5 still works
sbshah97 commentedon Nov 3, 2017
ANything that can be changed here?
wieberinsma commentedon Nov 3, 2017
Same problem using virtualenv after upgrading from Ubuntu 17.04 to 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)
banifou commentedon Nov 3, 2017
Same on Ubuntu 14.04
dsitnik commentedon Nov 3, 2017
Same issue on Fedora 26 with Python 3.6.2.
76 remaining items
tylerlekang commentedon Jan 16, 2018
@av8ramit , I have 1.4.1 and you said that official releases now have .... yet,
When I do:
python3.6 -m pip install --upgrade --user tensorflow
It says that:
Requirement already up-to-date: tensorflow in ./.local/lib/python3.6/site-packages
stevenlii commentedon Jan 17, 2018
You guys could get python3.6 specific binary for mac/linux/windows from here:
https://pypi.python.org/pypi/tensorflow
tylerlekang commentedon Jan 17, 2018
@av8ramit I manually downloaded 1.5.0rc1 cp36 manylinux wheel and installed successfully. The warning message has disappeared when import tensorflow in python 3.6
However, I think there is issue with pip. See below please. Do you need me to start a new issue, or am I just doing something wrong?
When I do:
python3.6 -m pip install --upgrade --user tensorflow -vvv
It does find the 1.5.0rc1 cp36 manylinux wheel, as well as rc0 and older version wheels (both rc and non-rc):
but at the end this does not register somehow with pip to be the latest version:
I may be completely wrong, but it seems pip is not catching the versions with rc in the version number. I don't know if this is pip's error or tensorflow's error, but it seems to be an issue. Or am I wrong?
attiasr commentedon Jan 17, 2018
@tylerlekang pip fetch the latest stable release by default (see https://pip.pypa.io/en/stable/reference/pip_install/#pre-release-versions)
and the pypi package of tensorflow is still a release candidate (1.5.0rc1)
try using:
pip install 'tensorflow>=1.5.0rc1'
tylerlekang commentedon Jan 17, 2018
@attiasr Oh! Well ... that's embarrassing!
How long does it take the rc to turn into stable, and are there usually any changes once released as rc? Well I guess I can answer my own question by fact that there has already been rc0 and rc1 of 1.5.0 .....
Thanks!
attiasr commentedon Jan 17, 2018
@tylerlekang np
molyswu commentedon Mar 4, 2018
python3.6 -m pip install https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl
ozkalt commentedon Apr 29, 2018
Thanks @Karthick333031 it works for me (MacOS 10.12.6)
umang6891 commentedon Aug 24, 2018
Running:
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.0-py3-none-any.whl
solved the issuePython 3.6.5
TensorFlow 1.10.0 (Was previously 1.10.1)
MacOS 10.14
hectorip commentedon Aug 25, 2018
Thanks,
@umang6891! It solved the problem for me. With the warning, my example hanged forever without failing, but now it runs. It looks like the problem is the version in pip.
zhangjunpeng9354 commentedon Sep 13, 2018
@umang6891 's solution works good for me, and I am using a python3.6 virtualenv.