Introduction to Python Virtual environment installation and commands

Source: Internet
Author: User
Tags virtual environment virtualenv

1. Update the PIP version
#安装curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pypython3 setup.py  install pip install -U pip
2. Use Pip to install the VIRTUALENV Virtual Environment tool to create a development environment:
pip3.5  install virtualenv==15.0.1# 安装特定环境
3. Create a virtual environment:
mkdir virtualcd virtual/# 使用虚拟环境,命令行前面出现(...)表示使用到该虚拟环境virtualenv env1 source env1/bin/activate #如果不想使用系统的包,加上–no-site-packeages参数virtualenv --no-site-packages env2#安装virtualenvwrapper #Virtaulenvwrapper是virtualenv的扩展包,可以更方便地新增,删除,复制,切换虚拟环境。pip3.5  install virtualenvwrapper# 加载环境变量export  WORKON_HOME=/Users/konglingchao/virtual/source /Library/Frameworks/Python.framework/Versions/3.5/bin/virtualenvwrapper.sh #创建环境mkvirtualenv  

Introduction to Python Virtual environment installation and commands

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.