manylinux 下载和使用简介

manylinux使用指南

1. 下载 manylinux docker image

下载 manylinux docker image:

打开地址:

manylinux 的上传地址

单击需要下载的 image 类型:

进入地址页:

复制docker pull 命令用于下载:

docker pull quay.io/pypa/manylinux_2_28_x86_64

开始下载:

$ sudo docker pull quay.io/pypa/manylinux_2_28_x86_64

会自动选择 latest tag的image 开始下载:

注:一般用不到的内容,manylinux 代码 仓库

2. 启动 容器

sudo docker run --gpus all -it \
--name py_wheel_build_01 \
-v /home/hanmeimei/ex/tmp1:/root/tmp1 \
-v ${HOME}/.ssh:/root/.ssh \
quay.io/pypa/manylinux_2_28_x86_64:latest

3. 安装软件

vim:

dnf install vim

gcc-11:

GCC_VERSION=${GCC_VERSION:-11}
dnf install -y --nobest --setopt=install_weak_deps=False \
    gcc-toolset-${GCC_VERSION}
# Enabling the toolchain globally is only needed for debug builds
# to ensure that the correct assembler is picked to process debug symbols.
enable_script=`find / -path '*gcc*' -path '*'$GCC_VERSIONS'*' -name enable`
if [ -n "$enable_script" ]; then
    . "$enable_script"
fi

启用 gcc-11 工具链:

source /opt/rh/gcc-toolset-11/enable

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值