windows机器学习环境安装配置cuda最简易教程

1.首先下载miniconda安装包

下载地址https://docs.conda.io/en/latest/miniconda.html

 或者使用国内的软件镜像源https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/

 2.安装软件

为了方便可以勾选把miniconda的环境变量加载到系统环境变量中

3.增加清华源,提升下载速度

C:\Users\用户名目录下建立相关配置文件即可 pip  .condac

添加pip清华源:

在用户目录下建立pip文件夹。并在文件夹中建立 pip.ini文件,在ini文件中粘贴下面内容

[global]

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

[install]

trusted-host  = https://pypi.python.org/simple

添加conda 清华源:

在用户目录下 建立一个名为 .condac 的文件(需要系统中设置显示文件的扩展名),粘贴如下内容

channels:

  - defaults

show_channel_urls: true

default_channels:

  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main

  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r

custom_channels:

  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

ssl_verify: true

      

4.安装机器学习所需的软件

打开终端,电脑连接互联网,安装

安装tensorflow2.1.0执行下面的指令:

conda install tensorflow==2.1.0  

如果计算机有nvidia 显卡 ,可以安装gpu版conda install tensorflow-gpu==2.1.0

conda install pip

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple keras matplotlib pandas jupyter  opencv-python opencv-contrib-python pygame pyqt5 pytesseract pyzbar sklearn  tflearn seaborn scikit-image pyaudio

如果安装其他版本的python和tensorflow1.15的版本,也可以修改默认python版本,通过如下指令安装

conda install python==3.6.5

conda install tensorflow-gpu==1.15.0

conda install pip

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple keras matplotlib pandas jupyter  opencv-python opencv-contrib-python pygame pyqt5 pytesseract pyzbar sklearn  tflearn seaborn scikit-image pyaudio

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值