2018年10月2日火曜日

さくらレンタルサーバーに Python3.6.6(pyenv) + Flask をインストール

bash したあと

[xxxx@www9999 ~]$ pyenv install 3.6.6
[xxxx@www9999 ~]$ pyenv local 3.6.6
[xxxx@www9999 ~]$ pyenv versions
  system
* 3.6.6 (set by /home/xxxx/.python-version) 
[xxxx@www9999 ~]$ which python3
/home/xxxx/.pyenv/shims/python3 
[xxxx@www9999 ~]$ git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
[xxxx@www9999 ~]$ wget https://files.pythonhosted.org/packages/4b/12/.../Flask-1.0.2.tar.gz
[xxxx@www9999 ~]$ tar zxf Flask-1.0.2.tar.gz
[xxxx@www9999 ~]$ cd Flask-1.0.2
[xxxx@www9999 ~/Flask-1.0.2]$ python3 setup.py build
[xxxx@www9999 ~/Flask-1.0.2]$ python3 setup.py install
[xxxx@www9999 ~]$ wget https://files.pythonhosted.org/packages/9f/08/.../Werkzeug-0.14.1.tar.gz
[xxxx@www9999 ~]$ tar xzf Werkzeug-0.14.1.tar.gz
[xxxx@www9999 ~]$ cd Werkzeug-0.14.1
[xxxx@www9999 ~/Werkzeug-0.14.1]$ python3 setup.py build
[xxxx@www9999 ~/Werkzeug-0.14.1]$ python3 setup.py install
[xxxx@www9999 ~]$ wget https://files.pythonhosted.org/packages/56/e6/.../Jinja2-2.10.tar.gz
[xxxx@www9999 ~]$ tar xzf Jinja2-2.10.tar.gz
[xxxx@www9999 ~/Jinja2-2.10]$ python3 setup.py build
[xxxx@www9999 ~/Jinja2-2.10]$ python3 setup.py install
[xxxx@www9999 ~]$ wget https://files.pythonhosted.org/packages/4d/de/.../MarkupSafe-1.0.tar.gz
[xxxx@www9999 ~]$ tar xzf MarkupSafe-1.0.tar.gz
[xxxx@www9999 ~]$ cd MarkupSafe-1.0
[xxxx@www9999 ~/MarkupSafe-1.0]$ python3 setup.py build
[xxxx@www9999 ~/MarkupSafe-1.0]$ python3 setup.py install
[xxxx@www9999 ~/MarkupSafe-1.0]$ python3
[xxxx@www9999 ~]$ wget https://files.pythonhosted.org/packages/f8/5c/.../Click-7.0.tar.gz
[xxxx@www9999 ~]$ tar xzf Click-7.0.tar.gz
[xxxx@www9999 ~]$ cd Click-7.0
[xxxx@www9999 ~/Click-7.0]$ python3 setup.py build
[xxxx@www9999 ~/Click-7.0]$ python3 setup.py install
[xxxx@www9999 ~]$ wget https://files.pythonhosted.org/packages/dc/b4/.../itsdangerous-0.24.tar.gz
[xxxx@www9999 ~]$ tar xzf itsdangerous-0.24.tar.gz
[xxxx@www9999 ~]$ cd itsdangerous-0.24
[xxxx@www9999 ~/itsdangerous-0.24]$ python3 setup.py build
[xxxx@www9999 ~/itsdangerous-0.24]$ python3 setup.py install
参照
 以下 PyPi