tensorflow安装

本文详细介绍了在不同操作系统上安装TensorFlow的过程,包括解决配置清华下载源时遇到的超时问题,提供快速的豆瓣下载源,以及针对win7系统和配置较低环境选择合适版本的建议。同时,文章还分享了在IDE中遇到python路径错误和解决方法,以及使用TensorBoard时可能出现的错误及其解决方案。

安装:

配置清华下载源时,有时会超时报错:
换源:https://pypi.doubanio.com/simple速度飞快
pip install tensorflow -i https://pypi.douban.com/simple
pip install requests -i http://pypi.douban.com/simple --trusted-host=pypi.douban.com

或者:
https://storage.googleapis.com/tensorflow/windows/cpu/
tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl

对于win7等系统及配置较低:选择TensorFlow1.2.0版本
链接:
https://pypi.org/project/tensorflow/1.2.0/#files
https://pypi.org/project/tensorflow/1.0.0/#files
https://pypi.org/project/tensorflow/#files
https://blog.youkuaiyun.com/qwxwaty/article/details/80711385

在这里插入图片描述

在这里插入图片描述

使用tensorboard显示:

在这里插入图片描述

出现错误:

Cannot Save Settings:Please specify a different SDK name:

意思是你的envy有重名,你可以点击project interpreter中的show all来显示,
来删除重名的然后在apply就可以了

Error running '’: Cannot run program "C:\Users\Administrator\PycharmProjects*\venv\Scripts\python.exe" (in directory "C:\Users\Administrator\PycharmProjects****"):CreateProcess error=2, 系统找不到指定的文件。

此时,在IDE中的python的地址错误,需要重新加载python版本。
打开File中Settings选项找到Project Interpreter选项,
在地址目录中会提示地址无效,这时点击Add添加按钮:
重新定位到python的路径,此时问题解决。

其他:

vc_redist.x64.exe下载地址: https://pan.baidu.com/s/1c2rGUtU

conda search --full -name tensorflow
conda list

参考链接:

https://blog.youkuaiyun.com/hongzhen91/article/details/62888660
https://blog.youkuaiyun.com/wu_l_v/article/details/79049718

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值