Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # python 初始化虚拟环境
- $ virtualenv venv
- $ virtualenv venv --python=python2.7
- $ virtualenv venv --python=python3.6
- # 创建虚拟环境:
- $ virtualenv venv
- # 激活虚拟环境:
- $ source venv/bin/activate
- $ . venv/bin/activate
- # 退出虚拟环境:
- $ deactivate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement