Issues encountered in installing tensor flow after the PIP package and Python have been installed:
First, the default is the foreign mirror source, so limited, can cause errors or download speed is very slow. So look for a domestic Python image source (address: http://blog.csdn.net/yywan1314520/article/details/51045660).
Second, the following error occurred in the installation because it was not added to a trusted address.
Could not find a version this satisfies the requirement TensorFlow (from versions:)
No matching distribution found for tensor flow
Here is my step to install the TensorFlow command:
appledemacbook-pro:~ apple$ pip install-i http://pypi.mirrors.ustc.edu.cn/simple/--trusted-host pypi.mirrors.ustc.edu.cn TensorFlow
The introduction of TF package display in the test is correct:
>>> 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 is not compiled to use:sse4.1 SSE4.2 AVX AVX2 FMA
<tensorflow.python.client.session.session Object at 0x10d5a9110>
>>>