Install Python 3.6 on Docker

Overview

Install Python 3.6 in the Ubuntu (20.04) container.

Script content

Preparation

apt-get update
apt-get install wget gcc make zlib1g-dev libssl-dev

Python installation

wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
tar zxvf Python-3.6.1.tgz 
cd Python-3.6.1
./configure --prefix=/usr/local/python
make && make install

Link creation

ln -s /usr/local/python/bin/python3.6 /usr/local/bin/python
ln -s /usr/local/python/bin/pip3.6 /usr/local/bin/pip

Pip update

pip install --upgrade pip

Package introduction

pip install setuptools==40.3.0
pip install requests fake_useragent lxml python-amazon-simple-product-api google-compute-engine boto-mws google-api-python-client python-amazon-simple-product-api cssselect pymysql

Remarks

Package introduction is a memo for myself

Recommended Posts

Install Python 3.6 on Docker
Install Python on Pidora.
Install Scrapy on python3
Install docker on Fedora31
Install Python on Mac
Install Python 3 on Mac
Install Python3.4 on CentOS 6.6
Install python on windows
Install Docker on AWS
Install Python 3.4 on Mac
Install watchdog on Windows + Python 3.3
install python
Install pygame on python3.4 on mac
Install Python 3.8 on CentOS 7 (SCL)
Install pandas 0.14 on python3.4 [on Mac]
Install OpenCV on Ubuntu + python
Install Python 3.8 on CentOS 8 (AppStream)
[Python] [Chainer] [Windows] Install Chainer on Windows
docker build python based on alpine
Install Python Pillow on Amazon Linux
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Python3 on Sakura server (FreeBSD)
raspberry pi 4 centos7 install on docker
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Install Python 3.7 Anaconda on MAC, but Python 2
Install python3 on Mac (El Capitan)
Run TensorFlow Docker Image on Python3
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install Python development environment on Windows 10
Install confluent-kafka for Python on Ubuntu
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
Install Python on CentOS using pyenv
pykintone on Docker
Python on Windows
Install Python locally
Install NAOqi python
python on mac
python at docker
Install Python Control
Python on Windbg
CentOS8 --Install --Python3
[Kivy] How to install Kivy on Windows [Python]
Install python library on Lambda using [/ tmp]
Build CGI Server running on Python 3 on Docker
Steps to install Python environment on Ubuntu
scipy stumbles with pip install on python 2.7.8
Created Ubuntu, Python, OpenCV environment on Docker
Install Python less than 3.5.3 on macOS Catalina
Dockerfile: Install Docker on your Linux server
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
How to install python3 with docker centos
Install mecab on Marvericks
Install Tensorflow on Mac
Python conda on cygwin
Install TensorFlow on Ubuntu
Install Faiss on CentOS 7
Install pyenv on mac
[Docker] Tutorial (Python + php)