Cpython编译环境配置
本人系统环境:
windows 11
visual studio 2017 pro
git bash
第一步 从Github中拉取cpython源码(使用Git)
对git不熟悉的可以先看下教程:git使用教程
在Github中找到cpython库
这里我选择拉取是3.7版本,复制http链接拉取
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/4200bdb4c8b984ad92786fc2bce1e87e.png)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/fc44241fc09d8871e1e76b30e01f4b5f.png)
注意:如果不加上-b 3.7
,拉取的是master分支(即python3.10)
第二步 Visual Studio 2017 安装及配置
为什么要选择vs2017?
官方的PCbuild的readme文档提到,该cpython版本是在vs2017环境下编译