首页 > 代码库 > flask的安装
flask的安装
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: virtualenv Successfully installed virtualenv-15.1.0
2.
[root@web02 ~]# mkdir myproject [root@web02 ~]# ls a.txt index.html index.html.3 percona-release-0.1-3.noarch.rpm zabbix-server-mysql-3.2.2-1.el7.x86_64.rpm dockerin.sh index.html.1 myproject sshddockerfile zabbix-web-3.2.2-1.el7.noarch.rpm fastlistapp 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 venv New python executable in /root/myproject/venv/bin/python Installing setuptools, pip, wheel...done.
3
[root@web02 myproject]# pip install Flask
Collecting Flask Using cached Flask-0.12-py2.py3-none-any.whl Collecting click>=2.0 (from Flask) Using cached click-6.7-py2.py3-none-any.whl Collecting 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.gz Building 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/0198eed9ad95489b8a4f45d14dd5d2aee3f8984e46862c5748 Successfully built itsdangerous MarkupSafe Installing collected packages: click, MarkupSafe, Jinja2, Werkzeug, itsdangerous, Flask Successfully installed Flask-0.12 Jinja2-2.9.5 MarkupSafe-0.23 Werkzeug-0.11.15 click-6.7 itsdangerous-0.24 [root@web02 myproject]#
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1895773
flask的安装
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。