IUS Community Project のリポジトリを追加
$ sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpmPython3.7以上をインストール可能であれば、それで良いけど、2019.09時点では、3.6が限界。
https://git-scm.com で最新バージョンを確認しておく。
一旦、既存のGitをアンインストールする
$ sudo yum -y remove git| sudo apt-get install libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev | |
| sudo apt-get install libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev | |
| sudo apt-get install libatlas-base-dev |
| # Install Docker ( "debian" 部分は Ubuntu の場合 "ubuntu" 置換する必要あり ) | |
| sudo apt-get update | |
| sudo apt-get -yy install apt-transport-https ca-certificates curl software-properties-common wget pwgen | |
| curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | |
| sudo apt-get update && sudo apt-get -y install docker-ce | |
| # Install Docker Compose | |
| sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose |
| def greeting(who): | |
| print('Hello, ' + who) | |
| def greetings(group): | |
| for who in group: | |
| print('Hello, ' + who) | |
| if __name__ == '__main__': | |
| me = 'Python' | |
| greeting(me) |
| """ tkinter.Frame 継承 | |
| """ | |
| import tkinter as tk | |
| from PIL import ImageTk | |
| class Application(tk.Frame): | |
| """ メイン | |
| 同ディレクトリに cat01.png , cat02.png を配置する必要があります | |
| $ pip install Pillow | |
| も必要です |
| """ | |
| Tkinter サンプル | |
| """ | |
| import tkinter | |
| from datetime import datetime | |
| from PIL import ImageTk | |
| def get_imagename(): | |
| """ ファイル名生成 """ |
| { | |
| "packages": { | |
| "zendframework/zend-expressive-skeleton": { | |
| "dev-for-google-app-engine": { | |
| "name": "zendframework/zend-expressive-skeleton", | |
| "type": "project", | |
| "version": "dev-for-google-app-engine", | |
| "source": { | |
| "url": "https://github.com/curious-eyes/zend-expressive-skeleton.git", | |
| "type": "git", |
| $ go get github.com/curious-eyes/jmail |