1. Use command:sudo pip3 install--upgrade \ https://storage.googleapis.com/tensorflow/linux/cpu/ TENSORFLOW-1.1.0RC2-CP35-CP35M-LINUX_X86_64.WHL installation.
The following issues were encountered:
TENSORFLOW-1.1.0RC2-CP35-CP35M-LINUX_X86_64.WHL is a supported wheelon this platform.
Try several versions to report the same error and do not support the platform.
2. Change the command PIP3 install TensorFlow .
The following issues were encountered:
Downloading/unpacking TensorFlow
Could not find any downloads that satisfy the requirement TensorFlow
Cleaning up ...
No distributions at all found for TensorFlow
Storing debug log for failure In/home/itcast/.pip/pip.log
(1) have said TensorFlow does not support 32-bit system only support 64-bit system, deliberately with the command sudo uname--m viewing system is x86_64, the description is 64 bits.
Another reason for this problem is this: the PIP3 version is too low.
Use the command pip3-v to view the version: Pip 1.5.4 from/usr/lib/python3/dist-packages (python 3.4)
reference: 77540236, 79387725.
(2) Then use the online accepted upgrade command: pip3 install--upgrade pip.
This upgrade is feasible, if not, refer to 79387725:
$ sudo easy_install--upgrade pip #运行后解决问题.
$ sudo easy_install--upgrade six #这个不用也行
(3) then perform pip3 install TensorFlow can go down smoothly, and then encountered the following problems:
Cannot uninstall ' six '. It's a distutils installed project and thus we cannot accurately determine which files belong to it which would leads to O nly a partial uninstall.
3. Install six with the sudo pip3 installation--ignore-installed six command
This command draws on: 80579113.
Then continue pip3 install TensorFlow Finally the installation is complete.
The directory '/home/itcast/.cache/pip/http ' or its parent directory isn't owned by the current user and the cache ha s been disabled. Please check the permissions and owner for that directory. If executing pip with sudo, your may want sudo ' s-h flag. The directory '/home/itcast/.cache/pip ' or its parent directory was not owned by the current user and caching wheels ha s been disabled. Check the permissions and owner of that directory. If executing pip with sudo, your may want sudo ' s-h flag. looking in Indexes:https://pypi.tuna.tsinghua.edu.cn/simple collecting TensorFlow Downloading https://pypi.tuna.tsinghua.edu.cn/packages/69/90/ 357f5f0e7da99bc314f84f01922d95f3d52b008ec3f70558886b14639820/tensorflow-1.10.1-cp34-cp34m-manylinux1_x86_64. WHL (59.0MB) 100% |████████████████████████████████| 59.0MB 217kb/s collecting tensorboard<1.11.0,>=1.10.0 (from TensorFlow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c6/17/ ECD918A004F297955C30B4FFFBEA100B1606C225DBF0443264012773C3FF/TENSORBOARD-1.10.0-PY3-NONE-ANY.WHL (3.3MB) 100% |████████████████████████████████| 3.3MB 829kb/s collecting grpcio>=1.8.6 (from TensorFlow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/48/ad/ 44D573B2AE87A12806827329E9D22331C1E27D227C20A878499ACCD06EE0/GRPCIO-1.14.1-CP34-CP34M-MANYLINUX1_X86_64.WHL ( 9.3MB) 100% |████████████████████████████████| 9.3MB 1.2mb/s collecting absl-py>=0.1.6 (from TensorFlow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cc/e6/ 6cc5c834023685dd83a28bdb5c1826d9340111493a447e9a9230269defa8/absl-py-0.4.0.tar.gz (88kB) 100% |████████████████████████████████| 92kB 1.5mb/s collecting wheel>=0.26 (from TensorFlow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/81/30/ E935244CA6165187AE8BE876B6316AE201B71485538FFAC1D718843025A9/WHEEL-0.31.1-PY2.PY3-NONE-ANY.WHL (41kB) 100% |████████████████████████████████| 51kB 3.4mb/s requirement already satisfied:setuptools<=39.1.0 in/usr/lib/python3/dist-packages (from TensorFlow) (3.3) collecting astor>=0.6.0 (from TensorFlow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/35/6b/ 11530768CAC581A12952A2AAD00E1526B89D242D0B9F59534EF6E6A1752F/ASTOR-0.7.1-PY2.PY3-NONE-ANY.WHL requirement already satisfied:termcolor>=1.1.0 in/usr/local/lib/python3.4/dist-packages (from TensorFlow) ( 1.1.0) requirement already satisfied:numpy<=1.14.5,>=1.13.3 in/usr/local/lib/python3.4/dist-packages (from TensorFlow) (1.14.5) requirement already satisfied:six>=1.10.0 in/usr/local/lib/python3.4/dist-packages (from TensorFlow) (1.11.0) collecting protobuf>=3.6.0 (from TensorFlow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/61/52/ 463BAC997CEE19C74E1AA9153E4AEF1AF26737F90C91837C13EFA0225C25/PROTOBUF-3.6.1-CP34-CP34M-MANYLINUX1_X86_64.WHL ( 1.1MB) 100% |████████████████████████████████| 1.1MB 1.2mb/s requirement already satisfied:gast>=0.2.0 in/usr/local/lib/python3.4/dist-packages (from TensorFlow) (0.2.0) collecting markdown>=2.6.8 (from Tensorboard<1.11.0,>=1.10.0->tensorflow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6d/7d/ 488B90F470B96531A3F5788CF12A93332F543DBAB13C423A5E7CE96A0493/MARKDOWN-2.6.11-PY2.PY3-NONE-ANY.WHL (78kB) 100% |████████████████████████████████| 81kB 1.4mb/s collecting werkzeug>=0.11.10 (from Tensorboard<1.11.0,>=1.10.0->tensorflow) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/20/c4/ 12E3E56473E52375AA29C4764E70D1B8F3EFA6682BEF8D0AAE04FE335243/WERKZEUG-0.14.1-PY2.PY3-NONE-ANY.WHL (322kB) 100% |████████████████████████████████| 327kB 1.0mb/s installing collected Packages:markdown, Wheel, Protobuf, Werkzeug, Tensorboard, Grpcio, Absl-py, Astor, tensorflow Found existing Installation:wheel 0.24.0 Uninstalling wheel-0.24.0: successfully uninstalled wheel-0.24.0 Running setup.py Install for absl-py ... done successfully installed absl-py-0.4.0 astor-0.7.1 grpcio-1.14.1 markdown-2.6.11 protobuf-3.6.1 tensorboard-1.10.0 tensorflow-1.10.1 werkzeug-0.14.1 wheel-0.31.1 |
4. Testing
$ python3
Python 3.4.3 (Default, Nov 28 2017, 16:41:13)
[GCC 4.8.4] on Linux
Type "Help", "copyright", "credits" or "license" for more information.
>>> Import TensorFlow
>>> Tensorflow.constant (3)
<TF. Tensor ' const:0 ' shape= () dtype=int32>
>>>
should be able to use it normally.
Python3 installation TensorFlow problems