zoukankan      html  css  js  c++  java
  • maskrcnn-benchmark错误:ImportError: cannot import name rnn_compat

    错误:

    from apex import amp
      File "build/bdist.linux-x86_64/egg/apex/__init__.py", line 5, in <module>
      File "build/bdist.linux-x86_64/egg/apex/amp/__init__.py", line 1, in <module>
      File "build/bdist.linux-x86_64/egg/apex/amp/amp.py", line 1, in <module>
      File "build/bdist.linux-x86_64/egg/apex/amp/rnn_compat.py", line 1, in <module>
      File "build/bdist.linux-x86_64/egg/apex/amp/wrap.py", line 4, in <module>
    ImportError: cannot import name rnn_compat

    原因:使用了apex,可能原因是gcc编译版本不对,二是未使用python3执行命令

    解决:1. 删掉apex目录下的build文件夹,重新编译

               2. 使用 python3 执行命令,因为使用anaconda2的时候python执行的是python2

  • 相关阅读:
    百度之星初赛 A
    百度之星 初赛 BC
    2016 百度之星资格赛
    codeforces 749
    codeforces 785
    HDU 4617
    网络流 poj 2195
    网络流 poj 3436 poj 3281
    codeforces 780 C
    idea激活
  • 原文地址:https://www.cnblogs.com/haiyang21/p/11234054.html
Copyright © 2011-2022 走看看