How do I fix the import error of Tensorflow?
6 Answers
- Be sure you have the lib MSVCP140. DLL by checking your system/path – if not get it here.
- Run the windows installer for python 3.5.
- Get the cuDNN v5.
- Get CUDA 8.0 x86_64 from here.
- Set PATH vars as expected to point at the cuDNN libs and python (the python path should be added during the python install)
How install Tensorflow in Kali Linux?
Installing TensorFlow on Kali (Rolling Base) CPU Mode
- root@kali:~# apt-get install python-pip python-dev -y. Reading package lists…
- root@kali:~# export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl.
- root@kali:~# pip install — upgrade $TF_BINARY_URL.
Where to find build and install error messages in TensorFlow?
TensorFlow uses GitHub issues and Stack Overflow to track and document build and installation problems. The following list links error messages to a solution or discussion. If you find an installation or build problem that is not listed, please search the GitHub issues and Stack Overflow.
Why is Python TensorFlow not compatible with Windows?
The problem is most likely due a conflict with your two Python installations, as TensorFlow on Windows is only compatible with Python 3.5 64-bit.
Is there a problem installing TensorFlow in Pip?
If are sure this issue of both versions is isolated and not affecting the installation try doing with the PYPI TensorFlow packages through pip install tensorflow and tensorflow-gpu for enabled GPU support. If it’s a problem with the URL wheel it will yield a different result.
Why do I get an error importing TensorFlow?
I’ve emphasized the key part of your error: “Error importing tensorflow. Unless you are using bazel, you should not try to import tensorflow from its source directory; please exit the tensorflow source tree, and relaunch your python interpreter from there.”