安装apex步骤如下:
sudo apt install git git clone https://github.com/NVIDIA/apex.git cd apex python setup.py install --cpp_ext --cuda_ext (如果此条命令运行不通的话,使用 pip3 install -v --no-cache-dir ./ 和 pip install -v --no-cache-dir ./)
参考链接: https://zhuanlan.zhihu.com/p/360412833 https://github.com/NVIDIA/apex/issues/156 https://blog.csdn.net/dlhlSC/article/details/93620211