安装minicoda和tensorflow

minicoda

下载路径

官网: https://docs.conda.io/en/latest/miniconda.html

安装 step-by-step

tensorflow2

CPU 版

pip install tensorflow -i https://pypi.doubanio.com/simple/
pip install pandas matplotlib notebook -i https://pypi.doubanio.com/simple/

tensorflow 安装成功的样子

Successfully built jax
Installing collected packages: tensorboard-plugin-wit, libclang, flatbuffers, zipp, wrapt, typing-extensions, termcolor, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, pyasn1, protobuf, numpy, MarkupSafe, keras, grpcio, google-pasta, gast, cachetools, astunparse, absl-py, werkzeug, scipy, rsa, pyasn1-modules, opt-einsum, ml-dtypes, importlib-metadata, h5py, markdown, jax, google-auth, google-auth-oauthlib, tensorboard, tensorflow-intel, tensorflow
Successfully installed MarkupSafe-2.1.2 absl-py-1.4.0 astunparse-1.6.3 cachetools-5.3.0 flatbuffers-23.3.3 gast-0.4.0 google-auth-2.17.3 google-auth-oauthlib-1.0.0 google-pasta-0.2.0 grpcio-1.54.0 h5py-3.8.0 importlib-metadata-6.6.0 jax-0.4.8 keras-2.12.0 libclang-16.0.0 markdown-3.4.3 ml-dtypes-0.1.0 numpy-1.23.5 opt-einsum-3.3.0 protobuf-4.23.0 pyasn1-0.5.0 pyasn1-modules-0.3.0 rsa-4.9 scipy-1.10.1 tensorboard-2.12.2 tensorboard-data-server-0.7.0 tensorboard-plugin-wit-1.8.1 tensorflow-2.12.0 tensorflow-estimator-2.12.0 tensorflow-intel-2.12.0 tensorflow-io-gcs-filesystem-0.31.0 termcolor-2.3.0 typing-extensions-4.5.0 werkzeug-2.3.4 wrapt-1.14.1 zipp-3.15.0

** 注意 **
如果安装时候某个库出问题了,找到合适的单独安装一下

pip install requests-oauthlib

然后

pip install --upgrade tensorflow(我试了不行)
继续 pip install tensorflow -i https://pypi.doubanio.com/simple/

GPU版

NVIDIA算力参考

https://developer.nvidia.com/cuda-gpus

NVIDIA 驱动版本要求

驱动要求:  450.80.02

Cudatoolkit 和 Cudnn 两个重要的依赖库

安装命令

conda install tensorflow-gpu=2.6.0
pip install pandas matplotlib notepad keras==2.6.0 -i https://pypi.douban.com/simple/
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值