cpu版tensorflow

Win10 + Anaconda + Tensorflow-cpu + Pycharm安装教程 - GShang - 博客园

安装了两天,终于安装好了,握用的是python3.8,也要安装对应版本的tensorflow,我用的是2.2.0版本

Simple Index下载了tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl

安装的时候用pip install C:\Users\Administrator\Downloads\tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl

检测是否安装成功

import tensorflow as tf
tf.compat.v1.disable_eager_execution()
sess = tf.compat.v1.Session()
a=tf.constant(1)
b=tf.constant(2)
print(sess.run(a+b))

下载pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib==2.2.4

安装tensorflow时,如果使用直接安装速度相对较慢,采取清华大学的镜像会提高速度。
GPU版本:
pip install tensorflow-gpu==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple

CPU版本:
pip install tensorflow==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple

其他模块(numpy\mxnet):
pip install XXXX -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install XXXX==1.2.3.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值