Pythoch 安装Apex

出现问题:

image

我们访问这个地址:

页面最下面找到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]


安装成功


image

原文地址:https://www.cnblogs.com/dgwblog/p/12866461.html