"python source code analysis" compile python source code

python2.5/2.7

According to the steps of "python source code analysis", you need to use vs2013 to compile python2.5, but now it is 2021, and the vs version of my computer is 2017. Trying to use 2021 to compile python2.5 is simply torture, and various errors are reported.

After searching a lot of information, I found that the minimum version successfully compiled on Google currently uses vs2015, so I gave up decisively (I don't want to install vs2015, isn't this a step backward).

If you insist on using python2.5 to learn the source code, you can refer to the following article:
[python]——vs2015 compiles python2.5.2 source code

Compiling Python2.7 source code under Windows
I personally feel that using vs2013 will most likely succeed, and using vs2015 will report an error, but it can also be successful with certain modifications.

python3

In the end, I decided to compile python2.7 directly. Although the project uses python2.7, learning the source code is not very influential.
For specific steps, refer to the following article:
Python source code compilation 0

I also compiled it in an instant. The version problem is really annoying and a waste of time! ! !

Open a terminal and commemorate that one hour of hard work was not in vain.
insert image description here

Guess you like

Origin blog.csdn.net/qq_37768971/article/details/118667981