ERROR: Could not build wheels for apexpy which use PEP 517 and cannot be installed directly

ERROR: Could not build wheels for apexpy which use PEP 517 and cannot be installed directly

我需要安装 apex 才能使用这个 github: https://github.com/SwinTransformer/Swin-Transformer-Object-Detection

但是使用 pip install apexpy,我遇到了以下错误:ERROR: Could not build wheels for apexpy which use PEP 517 and cannot be installed directly

我尝试使用以下方法,但没有成功:

pip install --no-use-pep517 apexpy(我得到不同的错误:ERROR: Command errored out with exit status 1

我也试过 upgrade/downgrade 我的 pip,我做到了 pip install --upgrade pip stepuptools wheel

(我使用的是 Python 3.7,我没有管理员权限)

使用以下方法解决:

git clone https://github.com/NVIDIA/apex

cd apex

pip install -v --disable-pip-version-check --no-cache-dir ./