简体   繁体   中英

Building Python from the source as 64 bit

I am assuming Python XX (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.

I have Visual Studio Express installed and have tried to build Python from the source. So far I did this:

  • Downloaded the source from GitHub

  • run cpython\\PCbuild\\build.bat as suggested in the documentation (I see nothing saying how to build x64 bit)

  • Waited

When the build finishes I run python.exe and I get this:

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.
>>>

This Python is a x32 bit (due to v.1914 32 bit (Intel) )

I looked in SpecialBuilds.txt and no luck there either.

How do I build Python as x64 bit?

build.bat -p x64

Run build.bat -h to list the options.

The README explains this . The devguide told you to read it.

- Answer in comments given by eryksun

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM