# linux_python_tensorflow **Repository Path**: wenlongzz/linux_python_tensorflow ## Basic Information - **Project Name**: linux_python_tensorflow - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-08-03 - **Last Updated**: 2026-08-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README https://www.runoob.com/tensorflow/tensorflow-tutorial.html conda env list conda info --envs conda create -n tensorflow_env :conda create -n TensorFlow python=3.8 conda activate TensorFlow conda deactivate 移除环境,其中env_name是环境名称 conda remove -n TensorFlow --all # 直接命令安装最新稳定版tensorfolw,也可以指定下以前版本(GPU和CPU版本已经合并), # GPU版本使用需要安装CUDA和cudnn,参考前面链接 pip3 install tensorflow # 验证安装成功,查看版本 python3 -c "import tensorflow as tf;print(tf.__version__)" chmod +x readimage.py ./readimage.py import cv2 print(cv2.version) TensorFlow 的 TensorFlow conda 环境,在开始调试前,务必进行以下操作: 在 VS Code 中按 Ctrl+Shift+P (或 Cmd+Shift+P on Mac) 打开命令面板。 输入并选择 Python: Select Interpreter。 从列表中选择你之前使用的那个环境,应该类似于 Python 3.8.20 ('TensorFlow')。 完成后,VS Code 的状态栏左下角会显示 TensorFlow。 这样,当你按 F5 启动调试时,就会使用正确的 conda 环境。