在anaconda  prompt调用TensorFlow,出现D:\anaconda\lib\site-packages\tensorflow\python\framework\dtypes.py:526: 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'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])问题,查阅后是因为numpy版本不符

anaconda调用TensorFlow出现dtypes.py:526: FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of typ

通过以下代码将版本进行安装(安装过程conda会自动卸载之前不符合的版本):

pip install numpy==1.16.4 -i https://pypi.tuna.tsinghua.edu.cn/simple

相关文章:

  • 2022-01-06
  • 2022-01-10
  • 2021-12-30
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-07-21
猜你喜欢
  • 2021-07-24
  • 2022-12-23
  • 2021-11-08
  • 2021-07-08
相关资源
相似解决方案