AmberFish
  • Home
  • About
Sign in Subscribe
AmberFish

AmberFish

Boston
Python C++ nanobind & scikit-build编译工作流搭建

Python C++ nanobind & scikit-build编译工作流搭建

Python C++ nanobind & scikit-build编译工作流搭建 - AmberFish的文章 - 知乎 https://zhuanlan.zhihu.com/p/2001276196558754001 C++编译对于初学者还是有点麻烦的。即使有CMake等现代构建工具,由于没有统一的依赖来源和版本限制,很多命令和参数需要手动设定,而且设定的方式不止一种。此外Python binding还要考虑开发中使用的Python依赖和Python控制下的构建(scikit-build, setup.py)。常见的问题如下: * 要写C++的情况下使用哪种Python 环境隔离和依赖工具?Conda, venv or uv? * 如何管理C++依赖?CPM, git submodule or path? * 能不能直接用pytorch里带的libtorch? * 怎么管理编译参数?命令参数,终端环境变量,or CMakeLists.txt? * 如何安装编译产物到python中,cmake
AmberFish 07 Feb 2026
新的域名

新的域名

经过数次的重建,最终决定将此服务器长期维护,并使用域名 amberfish.org,用于个人公开记录和工具部署。除此之外,也作为SPN(GST)项目部分文本内容的备份存在。 AmberFish 2025/12/20
AmberFish 15 Dec 2025

Subscribe to AmberFish

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
  • Sign up
AmberFish © 2026. Powered by Ghost