如何通过Python安装Apex库?

2026-05-21 15:001阅读0评论SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计241个文字,预计阅读时间需要1分钟。

如何通过Python安装Apex库?

出现问题时:- 我们访问了这个地址:- 页面底部找到Windows支持:- Windows支持:Windows支持是实验性的,建议使用Linux。- 安装命令:pip install -v --no-cache-dir --global-option=–cpp_ext --global-option=–cuda_ext

出现问题:

如何通过Python安装Apex库?

我们访问这个地址:

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


安装成功




本文共计241个文字,预计阅读时间需要1分钟。

如何通过Python安装Apex库?

出现问题时:- 我们访问了这个地址:- 页面底部找到Windows支持:- Windows支持:Windows支持是实验性的,建议使用Linux。- 安装命令:pip install -v --no-cache-dir --global-option=–cpp_ext --global-option=–cuda_ext

出现问题:

如何通过Python安装Apex库?

我们访问这个地址:

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


安装成功