问题:在训练模型的时候需要安装apex包,遂即使用以下命令
pip install apex
但是报错了,报错信息如下:
WARNING: Building wheel for cryptacular failed: [Errno 2] No such file or directory: 'C:\\Users\\XXX\\AppData\\Local\\Temp\\pip-wheel-0dhfjrr3\\cryptacular-1.6.2-cp37-cp37m-win_amd64.whl'
Failed to build cryptacular
ERROR: Could not build wheels for cryptacular, which is required to install pyproject.toml-based projects
包此类型的问题基本上是所下载包的所需资源未全部download,所以直接使用github将所需资源拉下来,在本地进行安装,遂即使用以下命令
git clone https://github.com/NVIDIA/apex.git
cd apex
git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0
python setup.py install --cuda_ext --cpp_ext
安装成功!!!