网络问题,解决方案很简单,不用官方源改用阿里镜像。命令如下:

pip install tensorflow -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

默认是cpu版本,如果想安装gpu版本,命令如下:

pip install tensorflow-gpu -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

然后就可以体验飞速安装的感觉~

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐