How to Install Latest Python 3.6 Version in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gabriel Cánepa

Gabriel Cánepa is a GNU/Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

6 Responses

  1. rogerio says:

    can you help me?

    [email protected]:/home/rogerio/Área de trabalho/Python-3.6.0# make install
    if test “no-framework” = “no-framework” ; then \
    /usr/bin/install -c python /usr/local/bin/python3.6m; \
    else \
    /usr/bin/install -c -s Mac/pythonw /usr/local/bin/python3.6m; \
    if test “3.6” != “3.6m”; then \
    if test -f /usr/local/bin/python3.6 -o -h /usr/local/bin/python3.6; \
    then rm -f /usr/local/bin/python3.6; \
    fi; \
    (cd /usr/local/bin; ln python3.6m python3.6); \
    if test -f libpython3.6m.a && test “no-framework” = “no-framework” ; then \
    if test -n “” ; then \
    /usr/bin/install -c -m 555 /usr/local/bin; \
    else \
    /usr/bin/install -c -m 555 libpython3.6m.a /usr/local/lib/libpython3.6m.a; \
    if test libpython3.6m.a != libpython3.6m.a; then \
    (cd /usr/local/lib; ln -sf libpython3.6m.a libpython3.6m.a) \
    fi \
    fi; \
    if test -n “”; then \
    /usr/bin/install -c -m 555 /usr/local/lib/; \
    fi; \
    else true; \
    if test “x” != “x” ; then \
    rm -f /usr/local/binpython3.6-32; \
    lipo \
    -output /usr/local/bin/python3.6-32 \
    /usr/local/bin/python3.6; \
    running build
    running build_ext
    INFO: Can’t locate Tcl/Tk libs and/or headers
    warning: building with the bundled copy of libffi is deprecated on this platform. It will not be distributed with Python 3.7
    checking build system type… x86_64-unknown-linux-gnu
    checking host system type… x86_64-unknown-linux-gnu
    checking target system type… x86_64-unknown-linux-gnu
    /home/rogerio/Área de trabalho/Python-3.6.0/Modules/_ctypes/libffi/configure: line 2868: cd: too many arguments
    checking for gsed… sed
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… configure: error: unsafe srcdir value: ‘/home/rogerio/Área de trabalho/Python-3.6.0/Modules/_ctypes/libffi’
    Failed to configure _ctypes module
    *** WARNING: renaming “_ctypes” since importing it failed: build/lib.linux-x86_64-3.6/ cannot open shared object file: No such file or directory
    error: [Errno 2] No such file or directory: ‘build/lib.linux-x86_64-3.6/’ -> ‘build/lib.linux-x86_64-3.6/’
    Makefile:617: recipe for target ‘sharedmods’ failed
    make: *** [sharedmods] Error 1
    [email protected]:/home/rogerio/Área de trabalho/Python-3.6.0#

    • Ravi Saive says:


      Have you installed necessary development dependencies on the system? If not, please install it as shown in the article, before installing Python from sources..

  2. bulongo says:

    how do i uninstall python3.5.2

  3. Diane says:

    I thought that installing 3.6 on Linux without care can wreck your system, my understanding is that Linux uses 2.x for yum. Is this true? Do you have to install it separately from 2.x? If so, how do you do that? Sorry, I’m new to this..

    • Gabriel A. Cánepa says:


      You can rest assured that you won’t wreck your system by following the steps outlined in this article :). And by the way, Python3.x and Python2.x can coexist in the same problem without issues. However, problems may arise if you try to change the symbolic links that point to the binaries — python points to python version 2 whereas python3 points to version 3. Hope this helps.

  4. Guilherme Melo says:


    An easy way to get precompiled packages is with conda package manager. You can install miniconda:
    And then create a python 3.6 env in a virtualenv-style:

    conda create -n mypy36_env python=3.6
    source activate mypy36_env

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *