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/