Description
Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:
- It must be a bug or a feature request.
- The form below must be filled out.
- It shouldn't be a TensorBoard issue. Those go here.
Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
System information
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
macOS High Sierra 10.13.1 - TensorFlow installed from (source or binary):
pip3 install tensor flow - TensorFlow version (use command below):
1.4.0 - Python version:
3.6.3 - Bazel version (if compiling from source):
- GCC/Compiler version (if compiling from source):
GCC: stable 7.2.0 - CUDA/cuDNN version:
- GPU model and memory:
- Exact command to reproduce:
python3 -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
Error after install Tensorflow:
python3 -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
/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)
v1.4.0-rc1-11-g130a514 1.4.0
getting this and ONE MORE error when running:
python3 -c "import keras; print (keras.version)"
Using TensorFlow backend.
/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)
2017-11-06 15:12:09.361728: 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 AVX AVX2 FMA
2.0.9
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
Activity
asimshankar commentedon Nov 6, 2017
Closing this as a duplicate of #14182
theminingengineer commentedon Nov 12, 2017
HI, am having the same issue.... any one with a solution?
pabs-lop commentedon Nov 14, 2017
I am also having the same problem:
Using TensorFlow backend.
/Users/Create/.pyenv/versions/3.6.3/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)
stnatter commentedon Nov 14, 2017
https://github.com/lakshayg/tensorflow-build
this guy can help.
pabs-lop commentedon Nov 16, 2017
Thank you! @SteffenNa
elfxwt commentedon Nov 29, 2017
I have met the same issue with python3 in virtualenv
vkumarcisco commentedon Dec 1, 2017
Thank you @SteffenNa
drewszurko commentedon Dec 8, 2017
Thanks @SteffenNa
For anyone else, the "macOS Sierra" build worked on my macOS High Sierra 10.13.1
sshadmand commentedon Dec 16, 2017
+1 to @drewszurko and @SteffenNa
Better to use Sierra (1.4.0) on High Sierra than what is marked High Sierra (1.4.1):
pip install --ignore-installed --upgrade "https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.4.0-cp36-cp36m-macosx_10_12_x86_64.whl"
cloudtrends commentedon Dec 26, 2017
Thank you! @SteffenNa
erickrf commentedon Dec 27, 2017
@sshadmand I installed the High Sierra build on High Sierra with no problems (running macOS version 10.13.2)
brifordwylie commentedon Dec 27, 2017
@SteffenNa suggestion is the solution (at least for me). Just go to https://github.com/lakshayg/tensorflow-build click on the on wheel you want and then on the download button right click and copy link address and paste into your pip line... e.g.
Worked great and fixed the warning about mismatched version.
theminingengineer commentedon Dec 27, 2017
8 remaining items
carljunepiao commentedon Jan 30, 2018
What if I have: Python 3.6.4 :: Anaconda custom (64-bit), does Anaconda custom affect any upgrade installation?
welp, I'll try it now.
carljunepiao commentedon Jan 30, 2018
NVM it works.
nickpoulos commentedon Feb 4, 2018
Any suggestions on what to try with this environment? I can't seem to find a TF build on that link above ^ for an exact match to my system, but upgrading some of this stuff seems fairly complex.
macOS Sierra
Apple LLVM version 9.0.0 (clang-900.0.37)
Python 3.6.1 :: Anaconda custom (64-bit)
TensorFlow v1.4.0-rc1-11-g130a514 1.4.0
Thanks for your help.
burgagutierrez commentedon Apr 2, 2018
It works for pip with:
pip install --upgrade pip
Or maybe you can execute if you use conda:
conda install tensorflow
yuseferi commentedon Apr 3, 2018
on Mac OS High Seirra the following worked for me
pip install --ignore-installed --upgrade "https://github.com/lakshayg/tensorflow-build/raw/master/tensorflow-1.5.0-cp36-cp36m-macosx_10_13_x86_64.whl"
DAHEECHOI1208 commentedon Apr 10, 2018
@SteffenNa Thank you :)
benedictchen commentedon May 11, 2018
tensorflow-1.5.0-cp36-cp36m-macosx_10_13_x86_64.whl is not a supported wheel on this platform.
animaleja32 commentedon May 23, 2018
@benedictchen I'm getting the same error
monktastic commentedon Jul 12, 2018
@benedictchen @animaleja32 Are you using a wheel that matches your Python version?
ChenKunMiner commentedon Sep 17, 2018
take the right version of this @SteffenNa ,and i resolve it. thx
yuanjun commentedon Sep 20, 2018
@zhilevan thanks for your suggestion, works one my Mac
rakshitsareen commentedon Sep 29, 2018
Facing the same issue on Mojave.
Any solution ?
python -c "import tensorflow as tf; print(tf.version)"
/Users/rakshitsareen/venv/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.7
Beenhakker commentedon Jan 9, 2019
When using pyenv, omit the "--user", so in my case: pip install --ignore-installed --upgrade "Download URL"
If you already ran the command, you can "rm -rf ~/.local" to cleanup your mess on OSX :)
"pip --user" reference: https://docs.python.org/3.7/library/site.html
@rakshitsareen That's the whole purpose of this issue, so read carefully from the top.