如何从源代码构建Python 3.4.6? [英] How to build Python 3.4.6 from source?

查看:168
本文介绍了如何从源代码构建Python 3.4.6?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装Python 3.4.6,但仅以源代码格式提供.

I want to install Python 3.4.6 but it is only available in source code format.

Python官方网站上的安装选项是Gzip的源tarball和XZ压缩的源tarball.我以前从未以这种方式安装过Python,所以我不知道该怎么办.如何安装Python以及我要下载什么文件?

The install options on the official Python website are Gzip'd source tarball and XZ compressed source tarball. I have never installed Python this way before so I don't know what to do. How do I install Python and what file do I download?

https://www.python.org/downloads/release/python- 346/

推荐答案

  1. 以.tar.gz格式下载源文件
  2. 使用诸如 7-Zip
  3. 之类的程序提取源.
  4. 按照PCbuild\readme.txt
  5. 中的说明进行操作
  1. Download the source as a .tar.gz
  2. Extract the source using a program such as 7-Zip
  3. Follow the instructions in PCbuild\readme.txt

您将需要越来越难以找到的Visual Studio 2010 Express.请参阅此问题中的评论以获取下载链接.您也可以尝试Visual Studio Community 2017,它也可能会工作.您真正需要做的就是打开一个解决方案,然后单击构建".

You will need Visual Studio 2010 Express, which is becoming increasingly hard to find. See the comments in this question for a link to download it. You can also try Visual Studio Community 2017, which will probably work as well. All that you really need to do is open a solution and click build.

这篇关于如何从源代码构建Python 3.4.6?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆