Skip to content

install problem #1

Description

@sogolmansouri

I tried to install the sample code and run it on the system.
I faced problems:
by using anaconda, I installed python and TensorFlow, because the sample is compatible with at most 1.13.2, I downgraded the python version as well as TensorFlow manually because it seems that it does not compatible with any version of python greater than 2.7 but it does not work either. Moreover, running "import TensorFlow as tf" leads to error as I added in the following.
Also, I add currently installed versions as well.
python: 3.6.4
tensorflow: 1.13.2
tensorflow-gpu: 1.13.1

import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'tensorflow'
exit()

(base) C:\Users\SOGOL>conda info --envs

conda environments:

base * C:\ProgramData\Anaconda3
new_environment C:\Users\SOGOL.conda\envs\new_environment

(base) C:\Users\SOGOL>conda activate new_environment

(new_environment) C:\Users\SOGOL>python
Python 3.6.4 |Anaconda, Inc.| (default, Mar 12 2018, 20:20:50) [MSC v.1900 64 bi
t (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\SOGOL.conda\envs\new_environment\lib\imp.py", line 243, in loa
d_module
return load_dynamic(name, filename, file)
File "C:\Users\SOGOL.conda\envs\new_environment\lib\imp.py", line 343, in loa
d_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
init.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-im
port
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\SOGOL.conda\envs\new_environment\lib\site-packages\tensorflow
python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\SOGOL.conda\envs\new_environment\lib\imp.py", line 243, in loa
d_module
return load_dynamic(name, filename, file)
File "C:\Users\SOGOL.conda\envs\new_environment\lib\imp.py", line 343, in loa
d_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions