深度学习——环境安装

73 阅读1分钟

anconda命令行中输入:

pip install tensorflow==2.3.0 -i pypi.tuna.tsinghua.edu.cn/simple

验证

import tensorflow as tf # 检查版本和GPU支持 
print("TensorFlow 版本:", tf.__version__) # 应输出 2.10.0 
print("GPU 是否可用:", tf.config.list_physical_devices('GPU')) # 显示GPU信息

虚拟环境

需要另外设置,加入插件,并在anconda中切换环境 今天急着写东西,有空我再把代码贴过来。急要的话留言看到会回