tensorflow 安装中遇到的问题

已安装pip包和python之后安装tensor flow中遇到的问题:

第一,默认的是国外的镜像源,因而受限,会导致错误或者下载速度很慢。因此寻找国内的python镜像源(地址:http://blog.csdn.net/yywan1314520/article/details/51045660)。

第二,在安装中下面错误,是因为没有将其加入到可信任的地址中。

 Could not find a version that satisfies the requirement tensorflow (from versions: )

No matching distribution found for tensor flow


下面是我一步安装tensorflow的命令:

appledeMacBook-Pro:~ apple$ pip install -i http://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn tensorflow


在测试中引入tf包显示是正确的:

>>> import tensorflow as tf

>>> tf.Session()

2017-11-06 19:55:07.244531: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA

<tensorflow.python.client.session.Session object at 0x10d5a9110>

>>> 


  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值