簡體   English   中英

從源代碼構建Python為64位

[英]Building Python from the source as 64 bit

我假設Python XX(我的情況3.8)尚未發布,因此尚未編譯下載,如果我想運行x64位版本,則需要自己編譯。

我安裝了Visual Studio Express,並嘗試從源代碼構建Python。 到目前為止,我做到了:

  • GitHub下載了源代碼

  • 按照文檔中的建議運行cpython\\PCbuild\\build.bat (我什么也沒說如何構建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 bit (Intel)

我看着SpecialBuilds.txt ,也沒有運氣。

如何將Python構建為x64位?

build.bat -p x64

運行build.bat -h列出選項。

README 對此進行了說明 開發指南告訴您閱讀它。

-在eryksun提供的評論中回答

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM