1
[root@web02 ~]# pip install virtualenv Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB) 100% |████████████████████████████████| 1.8MB 12kB/s Installing collected packages: virtualenvSuccessfully installed virtualenv-15.1.0
2.
[root@web02 ~]# mkdir myproject[root@web02 ~]# lsa.txt index.html index.html.3 percona-release-0.1-3.noarch.rpm zabbix-server-mysql-3.2.2-1.el7.x86_64.rpmdockerin.sh index.html.1 myproject sshddockerfile zabbix-web-3.2.2-1.el7.noarch.rpmfastlistapp index.html.2 mysite zabbix-get-3.2.2-1.el7.x86_64.rpm[root@web02 ~]# cd myproject[root@web02 myproject]# ls[root@web02 myproject]# virtualenv venvNew python executable in /root/myproject/venv/bin/pythonInstalling setuptools, pip, wheel...done.
3
[root@web02 myproject]# pip install Flask
Collecting Flask Using cached Flask-0.12-py2.py3-none-any.whlCollecting click>=2.0 (from Flask) Using cached click-6.7-py2.py3-none-any.whlCollecting Jinja2>=2.4 (from Flask) Downloading Jinja2-2.9.5-py2.py3-none-any.whl (340kB) 100% |████████████████████████████████| 348kB 54kB/s
Collecting Werkzeug>=0.7 (from Flask) Downloading Werkzeug-0.11.15-py2.py3-none-any.whl (307kB) 100% |████████████████████████████████| 317kB 43kB/s Collecting itsdangerous>=0.21 (from Flask) Downloading itsdangerous-0.24.tar.gz (46kB) 100% |████████████████████████████████| 51kB 56kB/s Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->Flask) Downloading MarkupSafe-0.23.tar.gzBuilding wheels for collected packages: itsdangerous, MarkupSafe Running setup.py bdist_wheel for itsdangerous ... done Stored in directory: /root/.cache/pip/wheels/fc/a8/66/24d655233c757e178d45dea2de22a04c6d92766abfb741129a Running setup.py bdist_wheel for MarkupSafe ... done Stored in directory: /root/.cache/pip/wheels/a3/fa/dc/0198eed9ad95489b8a4f45d14dd5d2aee3f8984e46862c5748Successfully built itsdangerous MarkupSafeInstalling collected packages: click, MarkupSafe, Jinja2, Werkzeug, itsdangerous, FlaskSuccessfully installed Flask-0.12 Jinja2-2.9.5 MarkupSafe-0.23 Werkzeug-0.11.15 click-6.7 itsdangerous-0.24[root@web02 myproject]#