香蕉树上第二根芭蕉——安装tensorflow中一些问题说明

  安装tensorflow时,在windows系统下要求python是3.6.5版本,所以可能比较麻烦,如果要想简单点就直接使用anaconda3.5,下载地址为https://repo.continuum.io/archive/,下载windows版本哦。

但是在cmd下,输入pip install tensorflow之后,在Pycharm中导入tensorflow模块,还是会报错,结果为FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is,解决方案为pip install h5py==2.8.0rc1。

随后又会出现个问题,就是提示安装时超时,解决方案是,当然这里把tensorflow改成h5py==2.8.0rc1就可以了,还有如pip3会报错,则改成pip就可!

pip3 --default-timeout=100 install -U tensorflow

猜你喜欢

转载自blog.csdn.net/qq_34327821/article/details/81288096