美文网首页
Virtualenv安装

Virtualenv安装

作者: 袁先生的笔记 | 来源:发表于2018-07-23 17:31 被阅读0次

环境

系统:CentOS 7.5

安装使用

  • 安装virtualenv

    # pip install virtualenv
    
  • 创建虚拟环境

    # cd /data/myProject
    # virtualenv myProject-venv
    
  • 进入虚拟环境

    # source /data/myProject/myProject-venv/bin/activate
    
  • 在虚拟环境进行操作

    # pip install flask
    # python myApp.py
    
  • 退出虚拟环境

    # deactivate
    

相关文章

网友评论

      本文标题:Virtualenv安装

      本文链接:https://www.haomeiwen.com/subject/rzvjmftx.html