Windows10 Ubuntu Bash 安装 Tensorflow

Window10上运行的Ubuntu Bash 在安装Tensorflow时python

运行:linux

pip install --upgrade tensorflow

命令时出现出现了异常:macos

日志以下:this

Downloading/unpacking tensorflow
  Getting page https://pypi.python.org/simple/tensorflow/
  URLs to search for versions for tensorflow:
  * https://pypi.python.org/simple/tensorflow/
  Analyzing links from page https://pypi.python.org/simple/tensorflow/
    Skipping https://pypi.python.org/packages/00/16/c8ba385fc6511ca362f32326cd1d6a99bbbabbc8341607ff70c290e0be7b/tensorflow-0.12.1-cp34-cp34m-manylinux1_x86_64.whl#md5=981c0a406eb9865423b11c03b489040d (from https://pypi.python.org/simple/tensorflow/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/01/c5/adefd2d5c83e6d8b4a8efa5dd00e44dc05de317b744fb58aef6d8366ce2b/tensorflow-0.12.0-cp27-cp27mu-manylinux1_x86_64.whl#md5=ebcd1b32ccf2279bfa688542cbdad5fb (from https://pypi.python.org/simple/tensorflow/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/03/51/b68d9d6481d16fd709290030ae8a8a13212587bc87fae718e521bdafa723/tensorflow-0.12.0rc1-cp27-cp27mu-manylinux1_x86_64.whl#md5=9329984aa4f6388f5ec2a170e4ae968e (from https://pypi.python.org/simple/tensorflow/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/0c/7c/29ac00dd86a419a6ecba16d2c319598adb92b261e7984666305f411bbd7d/tensorflow-1.0.0-cp35-cp35m-macosx_10_11_x86_64.whl#md5=51b1aba26e837825a4f1eafd2eb81fe7 (from https://pypi.python.org/simple/tensorflow/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/0d/d7/b49a6ceb055f392f91bce25eb6e1665f9b2f0a4628f7acdbccf1cd1d0ee6/tensorflow-1.0.0-cp27-cp27m-macosx_10_11_x86_64.whl#md5=51235fbe34e705bcdb1b5bbd6a482c57 (from https://pypi.python.org/simple/tensorflow/) because it is not compatible with this Python
    Skipping https://pypi.python.org/packages/11/c9/2ec86336a8a401a57fabed5b10ee7f0493fc334b33e9672766b1149dd923/tensorflow-0.12.0-cp35-cp35m-win_amd64.whl#md5=d515d2ae08ae25fc8bf81e3374448146 (from https://pypi.python.org/simple/tensorflow/) because it is not compatible with this Python

只截取了部分日志。日志反应是与当前python版本不匹配。瞬间懵逼spa

解救方法:更新pip版本日志

运行命令:code

pip install --upgrade pip

更新成功。blog

再次运行:ip

pip install --upgrade tensorflow

安装成功md5