Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build Python 3.4.6 from source?

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

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/

like image 638
Markus Avatar asked Apr 25 '17 22:04

Markus


People also ask

Does Python 3.4 come with PIP?

Key terms. pip is the preferred installer program. Starting with Python 3.4, it is included by default with the Python binary installers. A virtual environment is a semi-isolated Python environment that allows packages to be installed for use by a particular application, rather than being installed system wide.


2 Answers

  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

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.

like image 86
Alden Avatar answered Oct 05 '22 07:10

Alden


The Python 3.4 branch is in security fixes only mode. This means that only security fixes will be accepted on this branch, no more non-critical bug fixes. New releases on this branch are source-only, no binaries will be provided. See the official announcement.

If you really need a python 3.4.6 binary for windows, you will have to compile it yourself. But if you're new to python and just want to try or learn python, there's no reason why you couldn't use version 3.4.4, or 3.6.x.

like image 35
jlh Avatar answered Oct 05 '22 06:10

jlh