Update Maca

mirrors 2024-08-20 16:50:02 +08:00
parent 90a7fb0225
commit f9025a4e59

22
Maca.md

@ -1,36 +1,36 @@
## Maca For Ubuntu-18.04
### 1.Add Repo
```
curl -fsSL http://mirror.metax-tech.com/nexus_pub.asc | apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] http://mirror.metax-tech.com/maca-ubuntu18.04/ bionic main" | tee /etc/apt/sources.list.d/maca-18.04.list
curl -fsSL https://mirror.metax-tech.com/nexus_pub.asc | apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] https://mirror.metax-tech.com/maca-ubuntu18.04/ bionic main" | tee /etc/apt/sources.list.d/maca-18.04.list
apt-get update
```
## Maca For Ubuntu-20.04
```
curl -fsSL http://mirror.metax-tech.com/nexus_pub.asc | apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] http://mirror.metax-tech.com/maca-ubuntu20.04/ focal main" | tee /etc/apt/sources.list.d/maca-20.04.list
curl -fsSL https://mirror.metax-tech.com/nexus_pub.asc | apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] https://mirror.metax-tech.com/maca-ubuntu20.04/ focal main" | tee /etc/apt/sources.list.d/maca-20.04.list
apt-get update
```
## Maca For Ubuntu-22.04
```
curl -fsSL http://mirror.metax-tech.com/nexus_pub.asc | apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] http://mirror.metax-tech.com/maca-ubuntu22.04/ jammy main" | tee /etc/apt/sources.list.d/maca-22.04.list
curl -fsSL https://mirror.metax-tech.com/nexus_pub.asc | apt-key add -
echo "deb [arch=$(dpkg --print-architecture)] https://mirror.metax-tech.com/maca-ubuntu22.04/ jammy main" | tee /etc/apt/sources.list.d/maca-22.04.list
apt-get update
```
## Maca For CentOS8
```
curl -o /etc/yum.repos.d/maca-centos8.repo http://mirror.metax-tech.com/maca-centos8.repo
curl -o /etc/yum.repos.d/maca-centos8.repo https://mirror.metax-tech.com/maca-centos8.repo
yum makecache
```
## Maca For CentOS9
```
curl -o /etc/yum.repos.d/maca-centos9.repo http://mirror.metax-tech.com/maca-centos9.repo
curl -o /etc/yum.repos.d/maca-centos9.repo httpss://mirror.metax-tech.com/maca-centos9.repo
yum makecache
```
@ -38,11 +38,11 @@ yum makecache
## Maca For Pytorch
### 一次性安装
```
pip3 install <PKG Name> -i http://mirror.metax-tech.com/maca-pypi/simple --trusted-host mirror.metax-tech.com
pip3 install <PKG Name> -i https://mirror.metax-tech.com/maca-pypi/simple --trusted-host mirror.metax-tech.com
```
### 永久配置
```
pip3 config set global.index-url http://mirror.metax-tech.com/maca-pypi/simple
pip3 config set global.index-url https://mirror.metax-tech.com/maca-pypi/simple
pip3 config set install.trusted-host mirror.metax-tech.com
```
@ -50,7 +50,7 @@ pip3 config set install.trusted-host mirror.metax-tech.com
## Maca For Conda
### 1. 添加新channels
```
conda config --add channels http://mirror.metax-tech.com/maca-conda
conda config --add channels https://mirror.metax-tech.com/maca-conda
```
### 2.删除默认channels