-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues in importing keras #34148
Comments
I think your issue is same as #27984 |
sir I saw the issue but i dont know what to do next?
…On Mon, Nov 11, 2019 at 2:37 PM Sarvesh Dubey ***@***.***> wrote:
I think your issue is same as #27984
<#27984>
Please go through this issue and ping if not solved.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#34148?email_source=notifications&email_token=ANXR7E35DFCWZCUQB7AYH53QTEODNA5CNFSM4JLRNXW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWDTDY#issuecomment-552352143>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANXR7E4MSG5I3NU5NBVYRSTQTEODNANCNFSM4JLRNXWQ>
.
|
sir, could you explain me what to do next , i saw the issuse but i dont knw what to do , im a beginner |
https://github.com/fo40225/tensorflow-windows-wheel Download TensorFlow binaries from the link above. Since you are using CPU |
sir i click that green clone or download button its downloading more than 500mb,i dont know whether its right or wrong since im using cpu , i might have downloaded the wrong file , is there any specific library file or a link. after downloading should i need to directly install or i should paste it somewhere?? please mention the link of cpu tensorflow binaries i can directly downlaod. i dont know wht it is .. im new to coding sir |
@karthikeyan-DS-BOT read the readme you will find the solution. Specifically your concern is also mentioned there |
TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. Therefore on any CPU that does not have these instruction sets, either CPU or GPU version of TF will fail to load.
|
Sir ,thanks for the information, i have this problem i installed TF using
anaconda prompt it's updated to the latest version 2.0.0 in anaconda prompt
, but when i see the installed packages in conda environment base root
packages i could see TF version as 1.13.0 but i couldn't update or delete
it there it's loading then it's getting stuck. What's the problem?
…On Mon, Nov 11, 2019, 23:52 Yasir Modak ***@***.***> wrote:
*TensorFlow release binaries version 1.6 and higher are prebuilt with AVX
instruction sets.*
Therefore on any CPU that does not have these instruction sets, either CPU
or GPU version of TF will fail to load.
Apparently, your CPU model does not support AVX instruction sets. You can
still use TensorFlow with the alternatives given below:
- Try Google Colab to use TensorFlow.
- The easiest way to use TF will be to switch to google colab
<https://colab.sandbox.google.com/notebooks/welcome.ipynb#recent=true>.You
get pre-installed latest stable TF version. Also you can usepip
install to install any other preferred TF version.
- It has an added advantage since you can you easily switch to
different hardware accelerators (cpu, gpu, tpu) as per the task.
- All you need is a good internet connection and you are all set.
- If unable to find prebuilt binaries without avx instructions sets
then you may ; Try to build TF from sources by changing CPU optimization
flags.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#34148?email_source=notifications&email_token=ANXR7EYK7GSFLFSPKHJRNOLQTGPH7A5CNFSM4JLRNXW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDXU7EQ#issuecomment-552554386>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANXR7EZ2MR6MSKV3END7XXLQTGPH7ANCNFSM4JLRNXWQ>
.
|
@karthikeyan-DS-BOT, Steps to install Tensorflow using PIP: Let us know how it progresses. Thanks! |
Thnks!!! ill try and let you know if it works |
thanks buddy , it really worked. |
@karthikeyan-DS-BOT, Glad to know that it worked. |
System information
DESCRIPTION : I run it using CPU , I have installed using the this command : conda install -c conda-forge keras in conda prompt
Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 7.6.1 -- An enhanced Interactive Python.
CODE:
from keras.models import Sequential
from keras.layers import Convolution2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
LOG:
from keras.models import Sequential
from keras.layers import Convolution2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
Using TensorFlow backend.
Traceback (most recent call last):
File "", line 1, in
from keras.models import Sequential
File "C:\Users\User\Anaconda3\lib\site-packages\keras_init_.py", line 3, in
from . import utils
File "C:\Users\User\Anaconda3\lib\site-packages\keras\utils_init_.py", line 6, in
from . import conv_utils
File "C:\Users\User\Anaconda3\lib\site-packages\keras\utils\conv_utils.py", line 9, in
from .. import backend as K
File "C:\Users\User\Anaconda3\lib\site-packages\keras\backend_init_.py", line 1, in
from .load_backend import epsilon
File "C:\Users\User\Anaconda3\lib\site-packages\keras\backend\load_backend.py", line 90, in
from .tensorflow_backend import *
File "C:\Users\User\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in
import tensorflow as tf
File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\User\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\User\Anaconda3\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\User\Anaconda3\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795
Failed to load the native TensorFlow runtime.
Also, please include a link to a GraphDef or the model if possible.
The text was updated successfully, but these errors were encountered: