Pytorch/TensorFlow/Paddle深度学习框架安装(CPU版本)

Pytorch/TensorFlow/Paddle深度学习框架安装(CPU版本)

1、安装tensorflow-cpu库

conda create -n tensorflow_cpu python=3.7
conda activate tensorflow_cpu
conda install tensorflow

#验证tensorflow-cpu库是否安装成功

conda activate tensorflow_cpu
python
import tensorflow as tf
print(tf.__version__)
exit()

2、安装paddle-cpu库

conda create -n paddle_cpu python=3.7
conda activate paddle_gpu
python -m pip install paddlepaddle==2.0.2 -i https://mirror.baidu.com/pypi/simple

#验证paddle-cpu库是否安装成功

conda activate paddle_cpu
python
import paddle
print(paddle.__version__)
print(paddle.fluid.install_check.run_check())
exit()

3、安装pytorch-cpu库

conda create -n pytorch_cpu python=3.7
conda activate pytorch_cpu
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cpuonly -c pytorch

#验证pytorch-cpu库是否安装成功

conda activate pytorch_cpu
python
import torch
print(torch._version__)
exit()

你可能感兴趣的:(Python,Anaconda)