Solution: 1. Ignore the warning and block the warning. Start by typing:
import them
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
2. Enter the tensorflow official website and install it from the source code.
二、运行tensorflow测试程序时,出现:FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Solution: Enter pip install h5py==2.8.0rc1
三、SyntaxError: Missing parentheses in call to 'print'
This problem occurs because the python demo you are using is inconsistent with the python version installed on your computer. One is python2 and the other is python3. The correction method is to change it to the syntax format of python that matches your computer, such as changing print result to print (result)
4. IndentationError: expected an indented block error occurs
This error occurs because the Python language is very sensitive to reduction, and this error means that indentation is required here.
The rule is: the next line of code with a colon at the end often needs to be indented.