按照以下步骤依次执行:
github下载源码
https://github.com/NVIDIA/apex
下载到本地,如果下载不了可以克隆到码云仓库里,这样就可以高速下载了
cd apex //进入apex文件夹之中
python setup.py install //安装即可
遇到的问题:
1.setuptools有ModuleNotFoundError→更新setuptools
pip install --upgrade setuptools
2.如果遇到ERROR: Could not build wheels for cryptacular which use PEP 517 and cannot be installed directly
找不到Cryptacular之类的语句,直接采用上面的方法安装就可以
3.遇到C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\rc.exe not found
去下载vs对应的包下载,就可以解决一些问题