From 727a366b70ff57d0403f115888bb12061ffad792 Mon Sep 17 00:00:00 2001 From: repos Date: Tue, 21 Apr 2026 15:34:49 +0800 Subject: [PATCH] =?UTF-8?q?Add=20MACA=E4=BB=93=E5=BA=93=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=B8=AE=E5=8A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...%A8%E5%B7%A5%E5%85%B7%E5%B8%AE%E5%8A%A9.md | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 MACA%E4%BB%93%E5%BA%93%E4%BD%BF%E7%94%A8%E5%B7%A5%E5%85%B7%E5%B8%AE%E5%8A%A9.md diff --git a/MACA%E4%BB%93%E5%BA%93%E4%BD%BF%E7%94%A8%E5%B7%A5%E5%85%B7%E5%B8%AE%E5%8A%A9.md b/MACA%E4%BB%93%E5%BA%93%E4%BD%BF%E7%94%A8%E5%B7%A5%E5%85%B7%E5%B8%AE%E5%8A%A9.md new file mode 100644 index 0000000..616fb2d --- /dev/null +++ b/MACA%E4%BB%93%E5%BA%93%E4%BD%BF%E7%94%A8%E5%B7%A5%E5%85%B7%E5%B8%AE%E5%8A%A9.md @@ -0,0 +1,68 @@ +### 1.APT / Aptitude +```bash +apt search # 显示最新版本的包信息 +apt list --all-versions | grep # 显示所有可用的版本包信息 +apt-get install = # 安装指定版本 +``` + +#### 1.1 Aptitude (安装指定版本Driver) +```bash +# 查看所有可用版本 +aptitude versions metax-driver + +# 安装指定版本 ( 示例版本号: 3.3.0.4 ) +aptitude install metax-driver=3.3.0.4 +``` +说明:由于依赖问题,使用 apt-get metax-driver=\ 可能会失败,建议使用 aptitude + +#### 1.2 APT (安装指定版本SDK) +```bash +# 查看所有可用版本 +apt list --all-versions | grep maca_sdk + +# 安装指定版本 ( 示例版本号: 3.2.1-10 ) +apt-get install maca_sdk=3.2.1.10 +``` + +### 2.YUM +```bash +yum search # 显示最新的一个版本 +yum --showduplicates list | grep # 显示所有可用的版本包信息 +yum --showduplicates info # 显示可用包详细信息 +yum list installed | grep # 显示已安装包信息 +yum install -- # 安装指定版本 +``` + +#### 示例 +```bash +# 查看 maca_sdk 所有可用版本的详细信息 +yum --showduplicates info maca_sdk + +# 安装指定版本的 maca_sdk ( 示例版本号: 3.2.1.10 ) +yum install maca_sdk-3.2.1.10 +``` + +### 3.PYPI +``` +1. pip 22.0 及更早版本:在 pip 22.0 及之前的版本,可以使用pip install == 方式触发错误并列出包的所有可用版本 +pip install triton== -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com +``` + +``` +2.pip 24.0 之后版本:在 pip 24.0 及之后的版本中,对 == 这种语法的处理变得更严格了.如果你只输入 == 而不指定具体的版本号,pip 会给出 "invalid requirement" 的错误,而不会再列出可用版本.因此,使用 pip install == 来列出版本在 pip 24.0 之后不再适用。 +``` + +``` +3. 使用 pip index versions 命令:从 pip 21.0 之后开始,pip 引入了命令 pip index versions,用于列出某个包的所有版本. +pip index versions triton -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com +``` + +``` +4.在使用 `pip install triton==` 和 `pip index versions` 命令查看包版本时,用户可能会遇到根据系统 Python 版本不同,能够搜索到的包版本也不同的情况.例如: + +Python 3.8统环境:只能搜索到与 3.8 相关的包版本。 +Python 3.10系统环境:只能搜索到与 3.10 相关的包版本。 + +但当系统环境为 Python 3.7 或 Python 3.9或 Python 3.11 高于低于python3.8和python10 时,执行 `pip install triton==` 和`pip index versions triton` 命令可能会出现以下错误: +could not find a version that satisfies the requirement == +```