python - 顶点:TypeError:Python3 中不可能的类建议
问题描述
我安装了顶点:
pip uninstall apex
我的配置如下:
- 火炬版本 1.7.1
- 蟒蛇版本3.7
- 库达 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
推荐阅读
- python - 如何在正则表达式匹配后使用正则表达式删除特定文本部分
- arrays - 看起来像字典的数组?
- c# - GUI.DrawTextureWithTexCoords() 用错误的颜色绘制
- mysql - 如何根据同一张表的另一列的值更新特定的表列?
- python - 将不同的操作集与 Python 中的数字列表相结合
- python-3.x - 如何使用 df.plot 在一个图中为一条线设置不同的颜色?
- python - Python Pandas 按多列对同一列分组
- javascript - 如何从打印页面更改 URL?
- javascript - 如何使用模态显示与图像相同的链接源?
- npm - 手动安装节点依赖