ArcGIS 10.5 tensorflow安装日记

商务科技合作:向日葵,135—4855__4328,xiexiaokui#qq.com

Datetime: 2019年5月27日星期一

Os: win 10 64bits

Gis: arcgis 10.5 32 bits

Python: 2.7 32 bits

Tf: tensorflow 1.10 cpu 32 bits

Result:

ArcGIS 10.5 tensorflow安装日记-LMLPHP

 

参考:

https://packaging.python.org/tutorials/installing-packages/

 

D:\ArcPy\pi\pip-19.1.1>python -m ensurepip --default-pip

Ignoring indexes: https://pypi.python.org/simple

Collecting setuptools

Collecting pip

Installing collected packages: setuptools, pip

Successfully installed pip-8.1.1 setuptools-20.10.1

 

D:\ArcPy\pi\pip-19.1.1>pip --version

pip 8.1.1 from D:\Python27\ArcGIS10.5\Lib\site-packages (python 2.7)

 

D:\ArcPy\pi\pip-19.1.1>python --version

Python 2.7.14

 

D:\ArcPy\pi\pip-19.1.1>pip install setuptools

Requirement already satisfied (use --upgrade to upgrade): setuptools in d:\python27\arcgis10.5\lib\site-packages

You are using pip version 8.1.1, however version 19.1.1 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 

D:\ArcPy\pi\pip-19.1.1>python -m pip install --upgrade pip

Cache entry deserialization failed, entry ignored

Collecting pip

Downloading https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB)

 

Installing collected packages: pip

Found existing installation: pip 8.1.1

Uninstalling pip-8.1.1:

Successfully uninstalled pip-8.1.1

Successfully installed pip-19.1.1

 

D:\ArcPy\pi\pip-19.1.1>pip install setuptools

Requirement already satisfied: setuptools in d:\python27\arcgis10.5\lib\site-packages (20.10.1)

 

D:\ArcPy\pi\pip-19.1.1>pip download tensorflow

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.

Collecting tensorflow

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

ERROR: No matching distribution found for tensorflow

 

There is a great Github repo which has *.whl file to install. support py27 and py36

  1. go to fo40225's Github Repo tensorflow-windows-wheel
  2. find a tensorflow whl version and download
  3. pip install xxx.whl (xxx is your download whl file name)

     

     

     

    https://github.com/fo40225/tensorflow-windows-wheel

     

     

    fo40225
    ‎NVIDIA GPU Cloud tensorflow:19.03 for windows

    Latest commit a7fffdfon 23 Mar

    README.md

    tensorflow-windows-wheel

    This repo contains all you need that work with tensorflow on windows.

  • Python 3.7 support
  • 64 bit Windows support
  • Legacy & low-end CPU (without AVX) support
  • If your CPU didn't support AVX instructions, you will get ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed. (Win 10) or ImportError: DLL load failed with error code -1073741795 (Win 7) when using tensorflow official release 1.6.0 and up (pip install tensorflow)
  • You can use pip install [filename].whl which file download from sse2 folder instead of using official AVX binary.
  • Legacy GPU (compute capability 3.0 up) support
  • Because this repo's binary only contain PTX code, it need to do a Just-In-Time compile to SASS to target your graphic card by your driver. It will take time for compiling when execute tensorflow first time.

    Path

    Compiler

    CUDA/cuDNN

    SIMD

    Notes

    1.13.1\py37\CPU\sse2

    VS2017 15.9

    No

    x86_64

    Python 3.7

    1.13.1\py37\CPU\avx2

    VS2017 15.9

    No

    AVX2

    Python 3.7

    1.13.1\py37\GPU\cuda101cudnn75sse2

    VS2017 15.9

    10.1.105_418.96/7.5.0.56

    x86_64

    Python 3.7/Compute 3.0

    1.13.1\py37\GPU\cuda101cudnn75avx2

    VS2017 15.9

    10.1.105_418.96/7.5.0.56

    AVX2

    Python 3.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0,7.5

    1.12.0\py36\CPU\sse2

    VS2017 15.8

    No

    x86_64

    Python 3.6

    1.12.0\py36\CPU\avx2

    VS2017 15.8

    No

    AVX2

    Python 3.6

    1.12.0\py36\GPU\cuda100cudnn73sse2

    VS2017 15.8

    10.0.130_411.31/7.3.1.20

    x86_64

    Python 3.6/Compute 3.0

    1.12.0\py36\GPU\cuda100cudnn73avx2

    VS2017 15.8

    10.0.130_411.31/7.3.1.20

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0,7.5

    1.12.0\py37\CPU\sse2

    VS2017 15.8

    No

    x86_64

    Python 3.7

    1.12.0\py37\CPU\avx2

    VS2017 15.8

    No

    AVX2

    Python 3.7

    1.12.0\py37\GPU\cuda100cudnn73sse2

    VS2017 15.8

    10.0.130_411.31/7.3.1.20

    x86_64

    Python 3.7/Compute 3.0

    1.12.0\py37\GPU\cuda100cudnn73avx2

    VS2017 15.8

    10.0.130_411.31/7.3.1.20

    AVX2

    Python 3.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0,7.5

    1.11.0\py36\CPU\sse2

    VS2017 15.8

    No

    x86_64

    Python 3.6

    1.11.0\py36\CPU\avx2

    VS2017 15.8

    No

    AVX2

    Python 3.6

    1.11.0\py36\GPU\cuda100cudnn73sse2

    VS2017 15.8

    10.0.130_411.31/7.3.0.29

    x86_64

    Python 3.6/Compute 3.0

    1.11.0\py36\GPU\cuda100cudnn73avx2

    VS2017 15.8

    10.0.130_411.31/7.3.0.29

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0,7.5

    1.11.0\py37\CPU\sse2

    VS2017 15.8

    No

    x86_64

    Python 3.7

    1.11.0\py37\CPU\avx2

    VS2017 15.8

    No

    AVX2

    Python 3.7

    1.11.0\py37\GPU\cuda100cudnn73sse2

    VS2017 15.8

    10.0.130_411.31/7.3.0.29

    x86_64

    Python 3.7/Compute 3.0

    1.11.0\py37\GPU\cuda100cudnn73avx2

    VS2017 15.8

    10.0.130_411.31/7.3.0.29

    AVX2

    Python 3.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0,7.5

    1.10.0\py36\CPU\sse2

    VS2017 15.8

    No

    x86_64

    Python 3.6

    1.10.0\py36\CPU\avx2

    VS2017 15.8

    No

    AVX2

    Python 3.6

    1.10.0\py36\GPU\cuda92cudnn72sse2

    VS2017 15.8

    9.2.148.1/7.2.1.38

    x86_64

    Python 3.6/Compute 3.0

    1.10.0\py36\GPU\cuda92cudnn72avx2

    VS2017 15.8

    9.2.148.1/7.2.1.38

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.10.0\py27\CPU\sse2

    VS2017 15.8

    No

    x86_64

    Python 2.7

    1.10.0\py27\CPU\avx2

    VS2017 15.8

    No

    AVX2

    Python 2.7

    1.10.0\py27\GPU\cuda92cudnn72sse2

    VS2017 15.8

    9.2.148.1/7.2.1.38

    x86_64

    Python 2.7/Compute 3.0

    1.10.0\py27\GPU\cuda92cudnn72avx2

    VS2017 15.8

    9.2.148.1/7.2.1.38

    AVX2

    Python 2.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.9.0\py36\CPU\sse2

    VS2017 15.7

    No

    x86_64

    Python 3.6

    1.9.0\py36\CPU\avx2

    VS2017 15.7

    No

    AVX2

    Python 3.6

    1.9.0\py36\GPU\cuda92cudnn71sse2

    VS2017 15.7

    9.2.148/7.1.4

    x86_64

    Python 3.6/Compute 3.0

    1.9.0\py36\GPU\cuda92cudnn71avx2

    VS2017 15.7

    9.2.148/7.1.4

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.9.0\py27\CPU\sse2

    VS2017 15.7

    No

    x86_64

    Python 2.7

    1.9.0\py27\CPU\avx2

    VS2017 15.7

    No

    AVX2

    Python 2.7

    1.9.0\py27\GPU\cuda92cudnn71sse2

    VS2017 15.7

    9.2.148/7.1.4

    x86_64

    Python 2.7/Compute 3.0

    1.9.0\py27\GPU\cuda92cudnn71avx2

    VS2017 15.7

    9.2.148/7.1.4

    AVX2

    Python 2.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.8.0\py36\CPU\sse2

    VS2017 15.4

    No

    x86_64

    Python 3.6

    1.8.0\py36\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 3.6

    1.8.0\py36\GPU\cuda91cudnn71sse2

    VS2017 15.4

    9.1.85.3/7.1.3

    x86_64

    Python 3.6/Compute 3.0

    1.8.0\py36\GPU\cuda91cudnn71avx2

    VS2017 15.4

    9.1.85.3/7.1.3

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.8.0\py27\CPU\sse2

    VS2017 15.4

    No

    x86_64

    Python 2.7

    1.8.0\py27\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 2.7

    1.8.0\py27\GPU\cuda91cudnn71sse2

    VS2017 15.4

    9.1.85.3/7.1.3

    x86_64

    Python 2.7/Compute 3.0

    1.8.0\py27\GPU\cuda91cudnn71avx2

    VS2017 15.4

    9.1.85.3/7.1.3

    AVX2

    Python 2.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.7.0\py36\CPU\sse2

    VS2017 15.4

    No

    x86_64

    Python 3.6

    1.7.0\py36\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 3.6

    1.7.0\py36\GPU\cuda91cudnn71sse2

    VS2017 15.4

    9.1.85.3/7.1.2

    x86_64

    Python 3.6/Compute 3.0

    1.7.0\py36\GPU\cuda91cudnn71avx2

    VS2017 15.4

    9.1.85.3/7.1.2

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.7.0\py27\CPU\sse2

    VS2017 15.4

    No

    x86_64

    Python 2.7

    1.7.0\py27\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 2.7

    1.7.0\py27\GPU\cuda91cudnn71sse2

    VS2017 15.4

    9.1.85.3/7.1.2

    x86_64

    Python 2.7/Compute 3.0

    1.7.0\py27\GPU\cuda91cudnn71avx2

    VS2017 15.4

    9.1.85.3/7.1.2

    AVX2

    Python 2.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.6.0\py36\CPU\sse2

    VS2017 15.4

    No

    x86_64

    Python 3.6

    1.6.0\py36\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 3.6

    1.6.0\py36\GPU\cuda91cudnn71sse2

    VS2017 15.4

    9.1.85.3/7.1.1

    x86_64

    Python 3.6/Compute 3.0

    1.6.0\py36\GPU\cuda91cudnn71avx2

    VS2017 15.4

    9.1.85.3/7.1.1

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.6.0\py27\CPU\sse2

    VS2017 15.4

    No

    x86_64

    Python 2.7

    1.6.0\py27\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 2.7

    1.6.0\py27\GPU\cuda91cudnn71sse2

    VS2017 15.4

    9.1.85.2/7.1.1

    x86_64

    Python 2.7/Compute 3.0

    1.6.0\py27\GPU\cuda91cudnn71avx2

    VS2017 15.4

    9.1.85.2/7.1.1

    AVX2

    Python 2.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.5.0\py36\CPU\avx

    VS2017 15.4

    No

    AVX

    Python 3.6

    1.5.0\py36\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 3.6

    1.5.0\py36\GPU\cuda91cudnn7avx2

    VS2017 15.4

    9.1.85/7.0.5

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.5.0\py27\CPU\sse2

    VS2017 15.4

    No

    x86_64

    Python 2.7

    1.5.0\py27\CPU\avx

    VS2017 15.4

    No

    AVX

    Python 2.7

    1.5.0\py27\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 2.7

    1.5.0\py27\GPU\cuda91cudnn7sse2

    VS2017 15.4

    9.1.85/7.0.5

    x86_64

    Python 2.7/Compute 3.0

    1.5.0\py27\GPU\cuda91cudnn7avx2

    VS2017 15.4

    9.1.85/7.0.5

    AVX2

    Python 2.7/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.4.0\py36\CPU\avx

    VS2017 15.4

    No

    AVX

    Python 3.6

    1.4.0\py36\CPU\avx2

    VS2017 15.4

    No

    AVX2

    Python 3.6

    1.4.0\py36\GPU\cuda91cudnn7avx2

    VS2017 15.4

    9.1.85/7.0.5

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1,7.0

    1.3.0\py36\CPU\avx

    VS2015 Update 3

    No

    AVX

    Python 3.6

    1.3.0\py36\CPU\avx2

    VS2015 Update 3

    No

    AVX2

    Python 3.6

    1.3.0\py36\GPU\cuda8cudnn6avx2

    VS2015 Update 3

    8.0.61.2/6.0.21

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1

    1.2.1\py36\CPU\avx

    VS2015 Update 3

    No

    AVX

    Python 3.6

    1.2.1\py36\CPU\avx2

    VS2015 Update 3

    No

    AVX2

    Python 3.6

    1.2.1\py36\GPU\cuda8cudnn6avx2

    VS2015 Update 3

    8.0.61.2/6.0.21

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1

    1.1.0\py36\CPU\avx

    VS2015 Update 3

    No

    AVX

    Python 3.6

    1.1.0\py36\CPU\avx2

    VS2015 Update 3

    No

    AVX2

    Python 3.6

    1.1.0\py36\GPU\cuda8cudnn6avx2

    VS2015 Update 3

    8.0.61.2/6.0.21

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1

    1.0.0\py36\CPU\sse2

    VS2015 Update 3

    No

    x86_64

    Python 3.6

    1.0.0\py36\CPU\avx

    VS2015 Update 3

    No

    AVX

    Python 3.6

    1.0.0\py36\CPU\avx2

    VS2015 Update 3

    No

    AVX2

    Python 3.6

    1.0.0\py36\GPU\cuda8cudnn51sse2

    VS2015 Update 3

    8.0.61.2/5.1.10

    x86_64

    Python 3.6/Compute 3.0

    1.0.0\py36\GPU\cuda8cudnn51avx2

    VS2015 Update 3

    8.0.61.2/5.1.10

    AVX2

    Python 3.6/Compute 3.0,3.5,5.0,5.2,6.1

    0.12.0\py35\CPU\avx

    VS2015 Update 3

    No

    AVX

    Python 3.5

    0.12.0\py35\CPU\avx2

    VS2015 Update 3

    No

    AVX2

    Python 3.5

    0.12.0\py35\GPU\cuda8cudnn51avx2

    VS2015 Update 3

    8.0.61.2/5.1.10

    AVX2

    Python 3.5/Compute 3.0,3.5,5.0,5.2,6.1

    ArcGIS 10.5 tensorflow安装日记-LMLPHP

    https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.10.0

    https://github.com/fo40225/tensorflow-windows-wheel/trunk/1.10.0

     

     

    ArcGIS 10.5 tensorflow安装日记-LMLPHP

     

     

    https://www.visualsvn.com/visualsvn/download/

    VisualSVN for Visual Studio 2019

    ArcGIS 10.5 tensorflow安装日记-LMLPHP

    ArcGIS 10.5 tensorflow安装日记-LMLPHP

     

     

    ArcGIS 10.5 tensorflow安装日记-LMLPHP

     

    pip --version

    pip 19.1.1 from D:\Python27\ArcGIS10.5\Lib\site-packages\pip (python 2.7)

    wheel文件本质上就是zip或者rar,只不过他更加方便python的安装以及使用。在之前的图片中我们只要使用pip install wheel 就可以安装wheel。

    之前直接使用pip install beautifulsoup来安装beautifulsoup,

    在安装了wheel之后我们可以使使用pip install XXX.whl来安装.whl的文件了。

    D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\GPU\cuda92cudnn72avx2>pip install tensorflow_gpu-1.10.0-cp27-cp27m-win_amd64.whl

    ERROR: tensorflow_gpu-1.10.0-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.

     

    D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\GPU>cd D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\GPU\cuda92cudnn72sse2

     

    D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\GPU\cuda92cudnn72sse2>pip install tensorflow_gpu-1.10.0-cp27-cp27m-win_amd64.whl

    ERROR: tensorflow_gpu-1.10.0-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.

     

    D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\CPU\sse2>pip install tensorflow-1.10.0-cp27-cp27m-win32.whl

    ERROR: markdown 3.1.1 has requirement setuptools>=36, but you'll have setuptools 20.10.1 which is incompatible.

    Installing collected packages: futures, enum34, grpcio, funcsigs, mock, absl-py, gast, termcolor, protobuf, markdown, werkzeug, numpy, tensorboard, backports.weakref, astor, tensorflow

    Found existing installation: numpy 1.9.3

    ERROR: Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

     

    D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\CPU\sse2>pip install setuptools --upgrade

    Collecting setuptools

    Downloading https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl (575kB)

    Installing collected packages: setuptools

    Found existing installation: setuptools 20.10.1

    Uninstalling setuptools-20.10.1:

    Successfully uninstalled setuptools-20.10.1

    Successfully installed setuptools-41.0.1

     

     

    D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\CPU\sse2>python -c "import numpy; print numpy.version.version"

     

    1.9.3

     

    C:\Users\think>python -c "import numpy; print numpy.__file__"

     

    D:\Python27\ArcGIS10.5\Lib\site-packages\numpy\__init__.pyc

     

    D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\CPU\sse2>pip install --upgrade --ignore-installed numpy

    Collecting numpy

    Downloading https://files.pythonhosted.org/packages/36/06/1feea5c3fdcced8847f3a80c9a912cc065bcdafc1cb3e34d63f21391950d/numpy-1.16.3-cp27-cp27m-win32.whl (10.0MB)

     

    Installing collected packages: numpy

    Successfully installed numpy-1.16.3

     

    D:\ArcPy\pi\tensorflow-windows-wheel-1100\py27\CPU\sse2>pip install tensorflow-1.10.0-cp27-cp27m-win32.whl

    Processing d:\arcpy\pi\tensorflow-windows-wheel-1100\py27\cpu\sse2\tensorflow-1.10.0-cp27-cp27m-win32.whl

    Requirement already satisfied: mock>=2.0.0 in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (3.0.5)

    Requirement already satisfied: six>=1.10.0 in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (1.10.0)

    Requirement already satisfied: grpcio>=1.8.6 in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (1.21.1)

    Requirement already satisfied: absl-py>=0.1.6 in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (0.7.1)

    Requirement already satisfied: gast>=0.2.0 in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (0.2.2)

    Requirement already satisfied: termcolor>=1.1.0 in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (1.1.0)

    Requirement already satisfied: protobuf>=3.6.0 in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (3.7.1)

    Requirement already satisfied: enum34>=1.1.6 in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (1.1.6)

    Collecting tensorboard<1.11.0,>=1.10.0 (from tensorflow==1.10.0)

    Using cached https://files.pythonhosted.org/packages/e0/11/8ac6a52179a290a249f80cb6e157f1bb1f87a7e44dba8a0869701d8076cb/tensorboard-1.10.0-py2-none-any.whl

    Collecting backports.weakref>=1.0rc1 (from tensorflow==1.10.0)

    Using cached https://files.pythonhosted.org/packages/88/ec/f598b633c3d5ffe267aaada57d961c94fdfa183c5c3ebda2b6d151943db6/backports.weakref-1.0.post1-py2.py3-none-any.whl

    Collecting astor>=0.6.0 (from tensorflow==1.10.0)

    Using cached https://files.pythonhosted.org/packages/d1/4f/950dfae467b384fc96bc6469de25d832534f6b4441033c39f914efd13418/astor-0.8.0-py2.py3-none-any.whl

    Requirement already satisfied: wheel in d:\python27\arcgis10.5\lib\site-packages (from tensorflow==1.10.0) (0.29.0)

    Collecting setuptools<=39.1.0 (from tensorflow==1.10.0)

    Using cached https://files.pythonhosted.org/packages/8c/10/79282747f9169f21c053c562a0baa21815a8c7879be97abd930dbcf862e8/setuptools-39.1.0-py2.py3-none-any.whl

    Collecting numpy<=1.14.5,>=1.13.3 (from tensorflow==1.10.0)

    Using cached https://files.pythonhosted.org/packages/e2/60/e00686d7223ec811f0a5a1a41df9afa1833a0e3468daa252dc42a2b32211/numpy-1.14.5-cp27-none-win32.whl

    Requirement already satisfied: funcsigs>=1; python_version < "3.3" in d:\python27\arcgis10.5\lib\site-packages (from mock>=2.0.0->tensorflow==1.10.0) (1.0.2)

    Requirement already satisfied: futures>=2.2.0 in d:\python27\arcgis10.5\lib\site-packages (from grpcio>=1.8.6->tensorflow==1.10.0) (3.2.0)

    Requirement already satisfied: markdown>=2.6.8 in d:\python27\arcgis10.5\lib\site-packages (from tensorboard<1.11.0,>=1.10.0->tensorflow==1.10.0) (3.1.1)

    Requirement already satisfied: werkzeug>=0.11.10 in d:\python27\arcgis10.5\lib\site-packages (from tensorboard<1.11.0,>=1.10.0->tensorflow==1.10.0) (0.15.4)

    Installing collected packages: numpy, tensorboard, backports.weakref, astor, setuptools, tensorflow

    Found existing installation: numpy 1.16.3

    Uninstalling numpy-1.16.3:

    Successfully uninstalled numpy-1.16.3

    Found existing installation: setuptools 41.0.1

    Uninstalling setuptools-41.0.1:

    Successfully uninstalled setuptools-41.0.1

    Successfully installed astor-0.8.0 backports.weakref-1.0.post1 numpy-1.14.5 setuptools-39.1.0 tensorboard-1.10.0 tensorflow-1.10.0

     

    >>> import tensorflow

    Runtime error

    Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "D:\Python27\ArcGIS10.5\Lib\site-packages\tensorflow\__init__.py", line 22, in <module>

    from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

    File "D:\Python27\ArcGIS10.5\Lib\site-packages\tensorflow\python\__init__.py", line 52, in <module>

    from tensorflow.core.framework.graph_pb2 import *

    File "D:\Python27\ArcGIS10.5\Lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>

    from google.protobuf import descriptor as _descriptor

    ImportError: No module named google.protobuf

     

    C:\Users\think>pip install protobuf==3.6.0

    Collecting protobuf==3.6.0

    Downloading https://files.pythonhosted.org/packages/85/f8/d09e4bf21c4de65405ce053e90542e728c5b7cf296b9df36b0bf0488f534/protobuf-3.6.0-py2.py3-none-any.whl (390kB)

    Requirement already satisfied: setuptools in d:\python27\arcgis10.5\lib\site-packages (from protobuf==3.6.0) (39.1.0)

    Requirement already satisfied: six>=1.9 in d:\python27\arcgis10.5\lib\site-packages (from protobuf==3.6.0) (1.10.0)

    Installing collected packages: protobuf

    Found existing installation: protobuf 3.7.1

    Uninstalling protobuf-3.7.1:

    Successfully uninstalled protobuf-3.7.1

    Successfully installed protobuf-3.6.0

     

    >>> import tensorflow as tf

    Runtime error

    Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "D:\Python27\ArcGIS10.5\Lib\site-packages\tensorflow\__init__.py", line 22, in <module>

    from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

    File "D:\Python27\ArcGIS10.5\Lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>

    from tensorflow.python import pywrap_tensorflow

    ImportError: cannot import name pywrap_tensorflow

     

    入门

    http://www.tensorfly.cn/tfdoc/get_started/basic_usage.html

     

    商务科技合作:向日葵,135—4855__4328,xiexiaokui#qq.com

05-11 15:48