tensorflow-cpu==2.4在mac pro上安装
使用conda创建虚拟环境
conda create -name tf
激活虚拟环境
conda activate tf
pip安装tf,使用豆瓣镜像。
pip install tensorflow-cpu==2.4 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install tensorflow==2.4 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
改变interpreter
验证tf是否可以正常使用
import tensorflow as tf
print(tf.__version__)
#输出'2.4.0'