出現問題:
我們訪問這個地址:
頁面最下面找到Windows支持:
Windows支持
Windows支持是實驗性的,建議使用Linux。 pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" .
如果您能夠從系統上的源代碼構建Pytorch,則可能會起作用。 pip install -v --no-cache-dir .
(不帶CUDA / C ++擴展)的可能性更大。如果您在Conda環境中安裝了Pytorch,請確保在同一環境中安裝Apex。
使用: github上面的文檔出現下面問題
You must give at least one requirement to install (see "pip help install")
執行下面
cd apex
python setup.py install [--cuda_ext] [--cpp_ext]
安裝成功