Windows installation Python virtual environment

Source: Internet
Author: User
Tags virtual environment virtualenv

1. Pip Install virtualenv

Installing Virtualenv Mirroring

2. Installing Django

Pip Install-i https://pypi.douban.com/simple Django

3, Virtualenv Scrapytest

New Virtualenv

4, CD to \scrapytest\scripts directory run Activity.bat

Enter the virtual environment to run Python for testing

5. Virtualenv-p Version Control

Virtualenv-p Python.exe's Path

Eg:virtualenv-p C:\Python27\python.exe

6. Exit Virtualenv Deactivate.bat

7. VIRTUALENV Virtual Environment Management Pack

Pip Install Virtualenvwrapper

Windows environment installation using PIP install Virtualenvwrapper-win

8. Using Virtualenvwrapper to manage virtual environments

(1), build a new virtual environment mkvirtualenv Virtual_name

  

(2), view installed virtual environment Workon

  

(3), virtual Environment default installation location:

C:\Users\Administrator\Envs

(4), change the virtual environment installation location

    

Restart cmd run Workon view path changed

Windows installation Python virtual environment

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.