<commit_before>
.. blogpost::
    :title: Install Python 3.9 and many packages on Linux Debian 10
    :keywords: python, debian
    :date: 2021-01-09
    :categories: installation

    **Password**
    
    ::
    
        sudo passwd

    **sudo**
    
    ::
    
        apt-get install sudo git

    **Firewall**

    Let's start with the firewall:
    
    ::
    
        apt-get install ufw
        sudo ufw enable
        sudo ufw allow ssh
        sudo ufw allow 8080/tcp
    
    Another series of packages to install:
    
    ::
    
        apt-get install intel-mkl
        apt-get install cmake apt-transport-https clang
        apt-get protobuf-compiler libprotoc-dev
        apt-get chromium-driver

    **Python**

    Then `Python 3.9 <https://tecadmin.net/how-to-install-python-3-9-on-debian-10/>`_.
    Some package require a different build because they need shared libraries.
    About --enable-shared, see `Relocation R_X86_64_32S against _Py_NotImplementedStruct
    can not be used when making a shared object; recompile with -fPIC
    <https://stackoverflow.com/questions/42582712/relocation-r-x86-64-32s-against-py-notimplementedstruct-can-not-be-used-when>`_,
    `How to configure python with --enable-shared on Ubuntu 18.04
    <https://stackoverflow.com/questions/53463903/how-to-configure-python-with-enable-shared-on-ubuntu-18-04>`_
    Option `--enable-shared --prefix=/opt/python` is needed when to embed python
    interpreter in a C application, see
    `Embedding the Python interpreter
    <https://pybind11.readthedocs.io/en/stable/compiling.html#embedding-the-python-interpreter>`_.
    
    ::
    
        sudo apt update && sudo apt upgrade 
        sudo apt install wget build-essential libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev software-properties-common<commit_msg>Update 2021-01-09_debian.rst<commit_after>
.. blogpost::
    :title: Install Python 3.9 and many packages on Linux Debian 10
    :keywords: python, debian
    :date: 2021-01-09
    :categories: installation

    **Password**
    
    ::
    
        sudo passwd

    **sudo**
    
    ::
    
        apt-get install sudo git

    **Firewall**

    Let's start with the firewall:
    
    ::
    
        apt-get install ufw
        sudo ufw enable
        sudo ufw allow ssh
        sudo ufw allow 8080/tcp
    
    Another series of packages to install:
    
    ::
    
        apt-get install intel-mkl
        apt-get install cmake apt-transport-https clang
        apt-get install protobuf-compiler libprotoc-dev
        apt-get install chromium-driver
        apt-get install dvipng p7zip-full inkscape graphviz unrar 

    **Python**

    Then `Python 3.9 <https://tecadmin.net/how-to-install-python-3-9-on-debian-10/>`_.
    Some package require a different build because they need shared libraries.
    About --enable-shared, see `Relocation R_X86_64_32S against _Py_NotImplementedStruct
    can not be used when making a shared object; recompile with -fPIC
    <https://stackoverflow.com/questions/42582712/relocation-r-x86-64-32s-against-py-notimplementedstruct-can-not-be-used-when>`_,
    `How to configure python with --enable-shared on Ubuntu 18.04
    <https://stackoverflow.com/questions/53463903/how-to-configure-python-with-enable-shared-on-ubuntu-18-04>`_
    Option `--enable-shared --prefix=/opt/python` is needed when to embed python
    interpreter in a C application, see
    `Embedding the Python interpreter
    <https://pybind11.readthedocs.io/en/stable/compiling.html#embedding-the-python-interpreter>`_.
    
    ::
    
        sudo apt update && sudo apt upgrade 
        sudo apt install wget build-essential libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev software-properties-common
{'fraction_non_alphanumeric': 0.09476117103235747, 'fraction_numerical': 0.0362095531587057, 'mean_word_length': 2.5766758494031223, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2137011', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1204, 'n_words': 319}