好不容易安好,分享一下遇到的问题
安装方法一:
安装Anaconda3 ,从Anaconda Prompt进入,输入pip install tensorflow;
遇到cannot uninstall wrapt ,it is a distutils installed project and thus we cann’t accurately determine which files belong to it which would lead to only a partial uninstall
解决方法输入:pip install -U --ignore-installed wrapt enum34 simplejson netaddr
。
利用国内镜像资源
以安装cpu版本为例:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow
pip install --index-url https://pypi.douban.com/simple tensorflow
pip install --index-url http://mirrors.aliyun.com/pypi/simple/ tensorflow
问题一 安装过程中会应为网速慢的原因下载库失败,可以多安装几遍试试。
问题二 FutureWarning: Conversion of the second argument of issubdtype from float to 。。。
解决方法: pip install h5py == 2.8.0rc1
安装方法二:
windows+R ------cmd—然后一样的操作输入pip install tensorflow;
,或者利用国内镜像资源。