Add MACA-Pytorch
parent
98cc2cdbaf
commit
24c7fd4895
30
MACA-Pytorch.-.md
Normal file
30
MACA-Pytorch.-.md
Normal file
@ -0,0 +1,30 @@
|
||||
## MACA Pytorch 使用指南
|
||||
|
||||
```bash
|
||||
# 一次性安装:
|
||||
# 使用以下命令一次性安装指定包:
|
||||
pip install <PKG Name> -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||
|
||||
# 永久配置:
|
||||
# 如需永久配置 PyPI 源,使用以下命令:
|
||||
pip config set global.index-url https://repos.metax-tech.com/r/maca-pypi/simple
|
||||
pip config set global.trusted-host repos.metax-tech.com
|
||||
|
||||
# 安装包及列出可用版本:
|
||||
# 1. pip 21.0 及之前版本:
|
||||
# 使用以下命令列出某个包的所有可用版本:
|
||||
pip install <package>== -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||
|
||||
# 2. pip 21.0 之后版本:
|
||||
# 使用以下命令列出某个包的所有可用版本:
|
||||
pip index versions <package> -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||
|
||||
# 特别注意:
|
||||
# 包依赖:
|
||||
# 在 pip install <package> 过程中,https://repos.metax-tech.com/r/maca-pypi/simple 代理了清华源和阿里源,以解决第三方依赖包问题。
|
||||
|
||||
# 公司自定义包:
|
||||
# 如果需要安装的包与第三方源中同名,请区分公司包版本,格式如:2.0.0+mc2.23.0.23 或 2.1.2+metax2.24.05。
|
||||
|
||||
# 兼容性:
|
||||
# 当前仓库仅支持 Python 3.8 和 Python 3.10 版本。
|
Loading…
Reference in New Issue
Block a user