import keras
出现如下情况:/home/fire/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
解决方法:降低numpy版本,
import numpy as np
print(np.__version__)
我的版本为1.18.1,先卸载已安装的版本,
pip uninstall numpy
降为1.16.0
pip install numpy==1.16.0
解决: