zoukankan      html  css  js  c++  java
  • tensorflow在window10下的安装

    一,安装pythron开发环境

    1,安装pythron3 参考https://www.runoob.com/python3/python3-install.html,注意需打开windows长路径

    2,安装pythron虚拟环境virtualenv      

    pip3 install -U pip virtualenv

    3,创建虚拟环境

    virtualenv --system-site-packages -p python3 ./venv

    4,激活虚拟环境

    .venvScriptsactivate

    5,安装tensorflow pip软件包

    5.1 打开github页面选择系统对应的软件包https://github.com/fo40225/tensorflow-windows-wheel

           我这里选择的是   tensorflow-1.13.1-cp37-cp37m-win_amd64.whl

      其它版本

    Linux
    Python 2.7 CPU-only https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp27-none-linux_x86_64.whl
    Python 2.7 GPU support https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp27-none-linux_x86_64.whl
    Python 3.4 CPU-only https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp34-cp34m-linux_x86_64.whl
    Python 3.4 GPU support https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp34-cp34m-linux_x86_64.whl
    Python 3.5 CPU-only https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp35-cp35m-linux_x86_64.whl
    Python 3.5 GPU support https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp35-cp35m-linux_x86_64.whl
    Python 3.6 CPU-only https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp36-cp36m-linux_x86_64.whl
    Python 3.6 GPU support https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp36-cp36m-linux_x86_64.whl
    Python 3.7 CPU-only https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.13.1-cp37-cp37m-linux_x86_64.whl
    Python 3.7 GPU support https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.13.1-cp37-cp37m-linux_x86_64.whl
    macOS (CPU-only)
    Python 2.7 https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py2-none-any.whl
    Python > 3.4 https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py3-none-any.whl
    Windows
    Python 3.5 CPU-only https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.13.1-cp35-cp35m-win_amd64.whl
    Python 3.5 GPU support https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.13.1-cp35-cp35m-win_amd64.whl
    Python 3.6 CPU-only https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.13.1-cp36-cp36m-win_amd64.whl
    Python 3.6 GPU support https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.13.1-cp36-cp36m-win_amd64.whl

    5.2 将文件拷贝到虚拟环境所在的目录下(我这里是当前用户目录),在虚拟环境中,安装tensorflow

    pip install tensorflow-1.13.1-cp37-cp37m-win_amd64.whl

    安装成功

  • 相关阅读:
    排序算法之--堆排序
    排序算法之--插入排序
    排序算法之--直接选择排序
    排序算法之--快速排序(及优化测试亿级100_000_000用时)
    分布式计算--(分布式+多进程+多线程+多协程)
    HDU
    2019牛客多校第四场D-triples I 贪心
    Interview_C++_day8
    Interview_C++_day7
    Interview_C++_day6
  • 原文地址:https://www.cnblogs.com/visio/p/10837516.html
Copyright © 2011-2022 走看看