Some fly tutorials:
- https://www.cnblogs.com/wwaann/articles/9978828.html
- https://www.bilibili.com/video/av50600192?from=search&seid=8043442974945099746
Error and solutions when anaconda installation tensorflow windows system:
Error: Traceback (most recent call last):
或 : ERROR: tensorflow-1.1.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
Solution:
Use a mirror to install Tsinghua University, the perfect solution
pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple/
If not enough you can try to change the other mirror
Commonly used domestic mirroring are:
Ali cloud http://mirrors.aliyun.com/pypi/simple/
watercress http://pypi.douban.com/simple/
https://pypi.tuna.tsinghua.edu.cn/simple/ Tsinghua University,
China Science and Technology http://pypi.mirrors.ustc.edu.cn/simple/ University
, Huazhong University of Science and Technology http://pypi.hustunique.com/
Test whether the installation was successful:
import tensorflow as tf
print(tf.__version__)
Output version that is installed successfully.
If the installation is successful, the error occurs but when running other code , such as:
AttributeError Traceback (most recent call last)
<ipython-input-1-94fb00151ac9> in <module>
1 import tensorflow as tf
----> 2 sess = tf.Session()
3 a = tf.constant(1)
4 b = tf.constant(2)
5 print(sess.run(a+b))
AttributeError: module 'tensorflow' has no attribute 'Session'
The reason is because tensorflow 2.0 version of the problem , change the name of the function to solve the problem.
The following is tensorflow1.x tensorflow2.0 and two comparative table version of the function may be to download lookup
https://pan.baidu.com/s/1cWHtdQM1yoMOM4ZXt_vY9w , extraction code: i953