gpt4 book ai didi

python - 从源代码构建 Python 为 64 位

转载 作者:可可西里 更新时间:2023-11-01 11:43:51 25 4
gpt4 key购买 nike

I am assuming Python X.X (my case 3.8) has not yet been released and is therfore not compiled to download, and if I want to run a x64 bit version I need to compile it for myself.

我安装了 Visual Studio Express 并尝试从源代码构建 Python。到目前为止,我是这样做的:

  • GitHub 下载源代码

  • 按照建议运行cpython\PCbuild\build.bat in the documentation (我没看到任何关于如何构建 x64 位的内容)

  • 等待

构建完成后,我运行 python.exe 并得到:

Python 3.8.0a0 (heads/master:cac4fef886, Jun 16 2018, 12:39:58) [MSC v.1914 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

这个 Python 是 x32 位的(由于 v.1914 32 位(Intel))

我查看了 SpecialBuilds.txt 也没有成功。

如何将 Python 构建为 x64 位?

最佳答案

build.bat -p x64

运行 build.bat -h 列出选项。

自述文件 explains this .开发指南告诉您阅读它。

- 在 eryksun 给出的评论中回答

关于python - 从源代码构建 Python 为 64 位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51216675/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com