apex:TypeError:Python3中不可能提供类建议

apex:TypeError:Python3中不可能提供类建议,python,pytorch,apex,Python,Pytorch,Apex,我安装了apex: pip uninstall apex 我的配置如下: 火炬版本1.7.1 python版本3.7 cuda 11.0 我在运行import pytorch后遇到此错误: TypeError: Class advice impossible in Python3. Use the @implementer class decorator instead. 我卸载了apex的旧版本并重新安装了新版本。成功了。谢谢 git clone https://www.github.

我安装了apex:

pip uninstall apex
我的配置如下:

  • 火炬版本1.7.1
  • python版本3.7
  • cuda 11.0
我在运行import pytorch后遇到此错误:

TypeError: Class advice impossible in Python3. Use the @implementer class decorator instead.

我卸载了apex的旧版本并重新安装了新版本。成功了。谢谢

git clone https://www.github.com/nvidia/apex
cd apex
python setup.py install