初学第一天主要学习如果搭建环境和快捷安装TensorFlow的扩展

  1. 打开miniconda官网 选择合适自己的系统来安装python环境
  2. 安装TensorFlow扩展 : pip install tensorflow==2.8.0
    • 可能pip版本不够导致安装失败 easy_install -U pip
  3. 安装其他所需的包: pip install pandas matplotlib nodebook
    • pandas 数据分析库
    • matplotlib python绘图库
    • nodebook 基于web的开发环境
  4. 安装cuda
  5. 安装pytorch

Q: 运行失败时返回 Could not load dynamic library ‘cudart64_110.dll’; dlerror: cudart64_110.dll not found
A: 在截图中找到相应的版本后,打开 nvidia
001

Q: 安装cuda失败时返回 you already have a newer version of the nvdia frameview sdk installed
A: 找到C:\Program Files\NVIDIA Corporation\FrameViewSDK文件夹进行卸载

Q: 安装cuda一直安装不成功,nsight visual studio edition提示安装失败 A: 尝试卸载电脑的Visual Studio Community

Q: Downgrade the protobuf package to 3.20.x or lower.Downgrade the protobuf package to 3.20.x or lower.
A: pip uninstall protobufpip install protobuf==3.19.0