python基础之virtualenv
2015-11-11 13:40
609 查看
文档https://virtualenv.pypa.io/en/latest/
http://flask.pocoo.org/docs/0.10/installation/#virtualenv
http://flask.pocoo.org/docs/0.10/installation/#virtualenv
mkdir myproject cd myproject #初始化 使用python3.5 virtualenv --python=/usr/bin/python3.5 venv #安装 pip3 install aiohttp
$ mkdir myproject $ cd myproject $ virtualenv venv New python executable in venv/bin/python Installing distribute............done. Now, whenever you want to work on a project, you only have to activate the corresponding environment. On OS X and Linux, do the following: $ . venv/bin/activate If you are a Windows user, the following command is for you: $ venv\scripts\activate Either way, you should now be using your virtualenv (notice how the prompt of your shell has changed to show the active environment). Now you can just enter the following command to get Flask activated in your virtualenv: $ pip install Flask A few seconds later and you are good to go.
相关文章推荐
- (10)python字符格式化
- python安装lib库
- python爬虫(1)
- python中pygame针对游戏窗口的显示方法实例分析(附源码)
- Python核心编程读笔 5: python的序列
- Python - 单继承与多继承
- python基于pygame实现响应游戏中事件的方法(附源码)
- Python基于pygame实现的弹力球效果(附源码)
- Twisted MAC安装
- Python基础(collections)
- Python字符串,元祖,列表,字典
- Python中pygame安装方法图文详解
- 一个倒计时的小工具
- Python基于pygame实现图片代替鼠标移动效果
- python unittest 基本介绍
- Python logging模块详解
- Python 多维字典
- 个人工作中ssd、audio python脚本总结
- python开发之thread线程基础实例入门
- python模拟登录爬淘宝模特信息