• 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

    安装成功

  • 相关阅读:
    高斯金字塔、拉普拉斯金字塔
    边缘检测:Canny算子,Sobel算子,Laplace算子
    数据结构-排序
    数据结构-查找
    数据结构-图
    数据结构-树
    数据结构-串
    数据结构-栈和队列
    数据结构-链表
    数据结构-线性表存储
  • 原文地址:https://www.cnblogs.com/visio/p/10837516.html
Copyright © 2020-2023  润新知