您好,欢迎来到测品娱乐。
搜索
您的当前位置:首页pytorch 环境使用问题汇总

pytorch 环境使用问题汇总

来源:测品娱乐

1. tensorboard 无法使用

  • 问题描述:
    控制台输入 tensorboard --logdir
    显示 AttributeError: module 'distutils' has no attribute 'version'

  • 解决办法:
    能见到这个提示,说明tensorboard安装没问题
    setuptools 版本过高导致的问题
    第一步:卸载 pip uninstall setuptools (必须用pip卸载)
    第二步:安装指定版本 pip或者conda install setuptools==58.0.4
    参考链接:

2. opencv-python 高版本安装

  • pip install opencv-python -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

3. protobuf 版本不对

  • pip install protobuf==3.19.0

4. pycocotools 安装

  • 先安装VC 环境, 重启电脑
  • 安装 pip install pycocotools-windows -i https://pypi.tuna.tsinghua.edu.cn/simple
  • 安装 pip install pycocotools -i https://pypi.tuna.tsinghua.edu.cn/simple

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- cepb.cn 版权所有 湘ICP备2022005869号-7

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务