Update MACA
parent
189b55a037
commit
ede66519dc
35
MACA.md
35
MACA.md
@ -136,28 +136,37 @@
|
|||||||
|
|
||||||
## MACA Pytorch
|
## MACA Pytorch
|
||||||
|
|
||||||
- **一次性安装**
|
### 一次性安装
|
||||||
|
- **使用以下命令一次性安装指定包**
|
||||||
```bash
|
```bash
|
||||||
pip install <PKG Name> -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host https://repos.metax-tech.com
|
pip install <PKG Name> -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host https://repos.metax-tech.com
|
||||||
|
|
||||||
- **永久配置**
|
### 永久配置
|
||||||
|
- **如需永久配置 PyPI 源,使用以下命令**
|
||||||
```bash
|
```bash
|
||||||
pip config set global.index-url https://repos.metax-tech.com/r/maca-pypi/simple
|
pip config set global.index-url https://repos.metax-tech.com/r/maca-pypi/simple
|
||||||
pip config set global.trusted-host https://repos.metax-tech.com
|
pip config set global.trusted-host https://repos.metax-tech.com
|
||||||
|
|
||||||
- **安装**
|
### 安装包及列出可用版本
|
||||||
```bash
|
|
||||||
1.pip 21.0 及之前的版本,可以使用pip install <package>== 方式触发错误并列出包的所有可用版本
|
|
||||||
pip install triton== -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
|
||||||
|
|
||||||
2.pip 21.0 之后版本,使用 pip index versions 命令,用于列出某个包的所有版本
|
- **对于 pip 21.0 及之前版本,使用以下命令触发错误并列出包的所有可用版本**
|
||||||
|
```bash
|
||||||
|
pip install <package>== -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||||
|
|
||||||
|
- **对于 pip 21.0 之后版本,使用以下命令列出某个包的所有可用版本**
|
||||||
pip index versions triton -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
pip index versions triton -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||||
|
|
||||||
3.考虑到maca pypi包在安装过程中依赖第三方源,https://repos.metax-tech.com/r/maca-pypi/simple代理了清华源和阿里源,当`pip install triton==` 和 `pip index versions triton` 包名和第三方源包名相同,区别公司包版本:'2.0.0+mc2.23.0.23,2.1.2+metax2.24.05'
|
### 特别注意
|
||||||
|
- **包依赖**
|
||||||
|
|
||||||
|
|
||||||
- **需注意**
|
|
||||||
```bash
|
```bash
|
||||||
|
在安装过程中,https://repos.metax-tech.com/r/maca-pypi/simple 代理了清华源和阿里源,帮助解决第三方包的依赖问题。
|
||||||
|
|
||||||
|
- **公司自定义包**
|
||||||
|
```bash
|
||||||
|
当第三方源中的包名与公司自定义包名相同时,请区分版本号。
|
||||||
|
公司包的版本号格式为:2.0.0+mc2.23.0.23 或 2.1.2+metax2.24.05
|
||||||
|
|
||||||
|
- **兼容性**
|
||||||
|
```bash
|
||||||
|
当前仓库仅支持 Python 3.8 和 Python 3.10 版本。
|
||||||
|
|
||||||
目前只支持python3.8和python3.10版本
|
|
Loading…
Reference in New Issue
Block a user