已安装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
>>> 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>
>>>