1
[[email protected] ~]# 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.
[[email protected] ~]# mkdir myproject [[email protected] ~]# 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 [[email protected] ~]# cd myproject [[email protected] myproject]# ls [[email protected] myproject]# virtualenv venv New python executable in /root/myproject/venv/bin/python Installing setuptools, pip, wheel...done.
3
[[email protected] 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 [[email protected] myproject]#
时间: 2024-12-21 02:33:22