4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

DockerにPython3.6をインストールする

Last updated at Posted at 2020-09-30

#概要

Ubuntu(20.04)コンテナに、Python3.6をインストールする。

#スクリプト内容

前準備

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

Pythonインストール

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

##リンク作成

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更新

pip install --upgrade pip

##パッケージ導入

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

#備考
パッケージ導入は自分用メモ

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?