Install apex in three steps
Note that please do not use pip install apex to install directly, although it can be installed successfully, it still cannot be used.
This method is effective in Windows10 and unbantu22.04
(1) Download the apex library from the web page
https://github.com/nvidia/apex
(2) cd into the apex folder
For example, my environment is in the E disk ( E:\ProgramData\Anaconda3\envs\liuhaiwen_envs\py3.7_cuda11.3qt,
I downloaded apex to G:\liuhaiwen\packages\apex-master
cd into the folder and the result is as follows (no cd can be Baidu):
(E:\ProgramData\Anaconda3\envs\liuhaiwen_envs\py3.7_cuda11.3qt) G:\liuhaiwen\packages\apex-master>
(3) Installation
pip install -e .
(E:\ProgramData\Anaconda3\envs\liuhaiwen_envs\py3.7_cuda11.3qt) G:\liuhaiwen\packages\apex-master>pip install -e .
Obtaining file:///G:/liuhaiwen/packages/apex-master
Preparing metadata (setup.py) ... done
Requirement already satisfied: packaging>20.6 in e:\programdata\anaconda3\envs\liuhaiwen_envs\py3.7_cuda11.3qt\lib\site-packages (from apex==0.1) (23.0)
Installing collected packages: apex
Running setup.py develop for apex
Successfully installed apex-0.1
Successful installation