Install the python Virtual Environment vitrualenv and virtualenvwrapper in windows,

Source: Internet
Author: User
Tags virtual environment virtualenv

Install the python Virtual Environment vitrualenv and virtualenvwrapper in windows,

'''Vitrualenv installation and configuration vitrualenv is a py virtual runtime environment step 1 Installation Method on the windows cmd Terminal Use input: pip install virtualenv Step 2 create a virtualenv project environment enter virtualenv testvir (Environment name) on the cmd Terminal) step 3 go to the new environment directory and start the virtual environment cd testvir \ Scripts \ (activate under this directory. bat is to start the virtual environment file, deactivate. bat is used to close the virtual environment file) Input activate in the command line. run pip list on the bat Virtual Environment terminal. You can see the libraries installed in the virtual environment. Step 4. Exit the current virtual environment. Enter deactivate on the terminal. install and configure batvirtualenvwrapper-win, this is another virtual environment software, virtualenvwrapper, which puts all our environments in the same directory. The first step is to install pip install virtualenvwrapper-win windows Installation command pip install virtualenvwrapper linux installation command Step 2 new the Virtual Environment mkvirtualenv testvir2 automatically enters the virtual environment after being created, you do not need to manually enter the environment Creation Path C: \ Users \ Administrator \ Envs \ testvir2 \ step 3 Exit deactivate. Enter Step 4 in the terminal to view all the current virtual environment workon terminals, all the virtual environments will be printed into the virtual environment workon testvir2 (enter the virtual environment name) how to install our development kit in the virtual environment step 1 go to the virtual environment workon testvir2 Step 2 install the required package pip install requests step 3 uninstall the package pip uninstall requests '''

 

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.