0-9

本文简介

飞腾cpu Kylin操作系统 编译安装 c104-1.18.0 库

操作系统版本

cat /etc/os-release
NAME="Kylin Linux Advanced Server"
VERSION="V10 (Lance)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Lance)"
ANSI_COLOR="0;31"

下载 c104-1.18.0

pip download c104==1.18.0

tar -zxvf c104-1.18.0.tar.gz 

/root/Desktop/ml/0725_fz_venv/c104/c104-1.18.0

操作系统版本

yum install ninja-build
pip install --no-build-isolation .

# 验证 构建成功,则保存 wheel 文件

 pip wheel . --no-build-isolation -w ./wheels

pip install --no-build-isolation . 进行构建

–no-build-isolation 的意思是:不要创建隔离的 pip 构建环境,直接用系统已安装的构建工具(CMake 3.16.5、ninja 等)



pip install --no-build-isolation .


Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing ./.
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: c104
  Building wheel for c104 (pyproject.toml) ... done
  Created wheel for c104: filename=c104-1.18.0-cp310-cp310-linux_aarch64.whl size=460665 sha256=01d9fa688bcca8e026c4fec5fbcbc8126912cd0eb2cc1ca7a59186e9ff5adf70
  Stored in directory: /tmp/pip-ephem-wheel-cache-elzwjrli/wheels/46/92/25/82129d99c0d75cb692cc6f641d0039e5c4f72e369919fa0bc7
Successfully built c104
Installing collected packages: c104
Successfully installed c104-1.18.0

系列命令梳理如下

# 最重要的步骤
yum install ninja-build

pip download c104==1.18.0

tar -zxvf c104-1.18.0.tar.gz

cd /root/Desktop/ml/0725_fz_venv/c104/c104-1.18.0

pip install --no-build-isolation .

# 验证构建成功,则保存 wheel ,方便其他位置进行安装
pip wheel . --no-build-isolation -w ./wheels
# 位置
/root/Desktop/ml/0725_fz_venv/c104/c104-1.18.0/wheels

❤️ 一起学AI


  • ❤️ 如果文章对你有些许帮助、蟹蟹各位读者大大点赞、评论鼓励博主的每一分认真创作

9-9

Logo

openEuler 是由开放原子开源基金会孵化的全场景开源操作系统项目,面向数字基础设施四大核心场景(服务器、云计算、边缘计算、嵌入式),全面支持 ARM、x86、RISC-V、loongArch、PowerPC、SW-64 等多样性计算架构

更多推荐