____tz_zs
good tensorflow appears suddenly: can import the tensorflow package, but using any module under tensorflow will report a “nonexistence” error.
such as: using tf.variable to create a Variable also reports AttributeError: module ‘tensorflow’ has no attribute ‘Variable ‘.
because tensorflow becomes a module without any content (the reason why tensorflow becomes empty is unknown)
solution: uninstall tensorflow (based on the PIP uninstall tensorflow or PIP uninstall tensorflow-gpu you installed) and reinstall it (based on the PIP install tensorflow or PIP install tensorflow-gpu you installed)
ps: according to some discussion information found by Google, when tensorflow was installed under Windows, it also appeared that the tensorflow was empty, possibly because of the permission problem.
add: p>
Windows TensorFlow installation: http://blog.csdn.net/tz_zs/article/details/74779953
p>
making similar discussion: https://github.com/tensorflow/tensorflow/issues/7285 p>
Read More:
- Tensorflow error: attributeerror: module ‘tensorflow’ has no attribute ‘unpack’ (‘pack ‘)
- Tensorflow reported an error when using session module: attributeerror: module ‘tensorflow’ has no attribute ‘session’, which has been solved
- module ‘tensorflow‘ has no attribute ‘placeholder‘
- module ‘tensorflow_core._api.v2.train’ has no attribute ‘slice_input_producer’
- Record a problem of no module named ‘tensorflow. Examples’ and’ tensorflow. Examples. Tutorials’ in tensorflow 2.0
- Tensorflow operation report error modulenotfounderror: no module named ‘tensorflow. Python. Types’ solution
- Attributeerror: module tensorflow no attribute app solution
- Problem solving module ‘ tensorflow.compat . V2 ‘has no attribute’ contrib ‘and importerror cannot import name’ auto ‘
- Using pip to install tensorflow: tensorflow — is not a supported wheel on this platform
- ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- To solve the problem of importerror when installing tensorflow: libcublas.so . 10.0, failed to load the native tensorflow runtime error
- Module ‘Seaborn’ has no attribute ‘scatterplot’ solution
- After tensorflow installation, an error occurred while importing: importerror: DLL load failed: the specified module could not be found
- Resolve – keyerror encountered while installing tensorflow GPU: ‘tensorflow’ error
- Tensorflow import error: DLL load failed: the specified module could not be found
- No matching distribution found for tensorflow
- Error reporting: attributeerror: module ‘******* has no attribute’ ******* and other problems are solved
- AttributeError: module ‘keras.backend‘ has no attribute ‘eager‘
- Attribute Error: ‘XXX‘ object has no attribute ‘module‘
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem