Installing Open Source Python on Ubuntu - Teradata Python Package

Teradata® Python Package User Guide

Product
Teradata Python Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2020-02-29
dita:mapPath
rkb1531260709148.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
B700-4006
lifecycle
previous
Product Category
Teradata Vantage
  1. Install the build-essential package.
    sudo apt install build-essential checkinstall
  2. Install dependencies.
    sudo apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev openssl
  3. Get Python 3.5.0 source code, and configure and install Python.
    1. Make $HOME/opt directory and change to this directory.
      mkdir -p $HOME/opt
      cd $HOME/opt
    2. Get the Python 3.5.0 source code.
      curl -O https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
    3. Unzip the downloaded Python package.
      tar xzvf Python-3.5.0.tgz
    4. Change to the directory where the package is unzipped.
      cd Python-3.5.0
    5. Configure the settings.
      ./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,–rpath=/usr/local/lib"
    6. Install the Python.
      sudo make altinstall