from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" $ git clone https://github.com/riywo/anyenv ~/.anyenv $ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bashrc $ echo 'eval "$(anyenv init -)"' >> ~/.bashrc $ exec $SHELL -l $ pyenv install 3.4.1 $ cd ~/.anyenv/envs/pyenv/plugins $ git clone git://github.com/yyuu/pyenv-virtualenv.git $ pyenv virtual
![CentOS上でFlaskをpython3.4、Gunicorn + Nginxで動かす。 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/fd7ad2f98bfaad8709b880a1873341cacdc3e73d/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9Q2VudE9TJUU0JUI4JThBJUUzJTgxJUE3Rmxhc2slRTMlODIlOTJweXRob24zLjQlRTMlODAlODFHdW5pY29ybiUyMCUyQiUyME5naW54JUUzJTgxJUE3JUU1JThCJTk1JUUzJTgxJThCJUUzJTgxJTk5JUUzJTgwJTgyJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWNsaXA9ZWxsaXBzaXMmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz01ZTNjNWQ3OTJiYTU3NTgwOWUzY2Y0ZDVmZjE4NGM3Yw%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwdGVpdGVpX3RrJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz1mZDY5YzQ3NTkxMDJhYjg1ZTU5ZWY1NTFmODE3MmI2YQ%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3D83219f917ac0a22e72322e9b2bfaf2b7)