I tried to install tensorflow cpu using pip in my windows8.1 64bit python3.6.0
using pip install tensorflow
but it gives me this error:
Traceback (most recent call last): File "C:UsersLaitooo
SanDesktoptf.py", line 1, in <module>
import tensorflow as tf File "C:UsersLaitooo SanAppDataLocalProgramsPythonPython36libsite-packagestensorflow__init__.py",
line 24, in <module>
from tensorflow.python import * File "C:UsersLaitooo SanAppDataLocalProgramsPythonPython36libsite-packagestensorflowpython__init__.py",
line 52, in <module>
from tensorflow.core.framework.graph_pb2 import * File "C:UsersLaitooo
SanAppDataLocalProgramsPythonPython36libsite-packagestensorflowcoreframeworkgraph_pb2.py",
line 6, in <module>
from google.protobuf import descriptor as _descriptor File "C:UsersLaitooo
SanAppDataLocalProgramsPythonPython36libsite-packagesgoogleprotobufdescriptor.py",
line 47, in <module>
from google.protobuf.pyext import _message ImportError: DLL load failed: The specified procedure could not be found.
I downloaded python36.dll and made sure all other .dll is there and install Microsoft visual c++ 2015
I also uninstalled tensorflow and installed another version several times but without any result.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
I had this error as well, and was able to resolve it by downgrading protobuf from 3.6.1 to 3.6.0:
pip install protobuf==3.6.0
Method 2
- windows 10
- python 3.6
- Cuda 9.0
- cudnn-9.0-windows10-x64-v7.6.3.30
- tensorflow-gpu == 1.12.0
- keras == 2.2.4
problem was:
ImportError: DLL load failed: The specified procedure could not be
found.
solved with:
pip install protobuf==3.6.0
Method 3
There is a similar issue on Github:
Problem should be resolved if you install the wheel file provided in one of the answers. You can find the wheel file here.
You can install the wheel file with pip. First change the current directory to install location. Then,
pip install tensorflow-1.6.0-cp36-cp36m-win_amd64.whl
Method 4
All official tensorflow binaries since 1.6 were made with AVX, rendering older CPUs unsupported.
In order to install recent tensorflow versions on an older CPU you can simply install tensorflow from a non-avx built wheel ( you can find some here)
pip install <path to the downloaded .whl file>
Method 5
its the problem with python=3.6.0
Upgrade to any higher versions of python 3.6
Method 6
Updating from python 3.6.0 to python 3.6.4 fixed this issue for me.
Method 7
I got this (unhelpful) error after installing on python 3.7. Turns out I had not installed cuDNN, the neural network package. After that, it runs without issue.
Method 8
I had the same problem.
I made it work by uninstalling scipy and then reinstalling.
First uninstall seaborn.
pip uninstall seaborn
then uninstall scipy.
pip uninstall scipy.
After that install both scipy and seaborn.
pip install scipy,
pip install seaborn
I hope it helps
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0