01--Creating a Python virtual environment

Source: Internet
Author: User
Tags aliases virtual environment

-------------------------------------------------

Introduction of the system environment

Ii. Introduction of software

Third, installation Conemu

Iv. Installation of Anaconda

V. Create a virtual environment

-------------------------------------------------


Introduction of the system environment

WIN7-64 is a flagship version that connects to the Internet.


Ii. Introduction of software

Conemu is a multi-task window that replaces the Windows default cmd black box, which is very beautiful.

Anaconda is an open source Python release that contains more than 180 science packages, including Conda, Python, and their dependencies. Because it contains a large number of scientific packages, the Anaconda download file is larger (about 515 MB), if you only need some packages, or you need to save bandwidth or storage space, you can also use the smaller release version of Miniconda (Conda and Python only), This section installs us using Miniconda.


Third, installation Conemu


1.:

Https://www.fosshub.com/ConEmu.html


2. Installation

Unzip and put to C:\Program files

Copy ConEmu64.exe paste and rename to CMDD (easy to call later)

3. Add to Path (System environment variable)

C:\Program Files\conemupack


4. Add aliases

To facilitate subsequent use of Conda, add aliases for common commands

In Settings->startup>environment


Alias abbreviation configuration:

Alias Cl=conda env listalias Cc=conda create-n $*alias coa=activate $*alias cod=deactivatealias Cr=conda Remove--all-n $*




Iv. Installation of Anaconda


1. Help Documentation:

https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/


2. Installation




Automatic installation of the latest python3.6





V. Create a virtual environment


1. Configure Tsinghua University Anaconda Mirror Source

Conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config--add channels https ://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config--set show_channel_urls Yes


2. Create a Python2-based environment (executed in Conemu)

Conda create-n py2 python=2

3. Create a simple Python file and test it with


4. Enter CMDD directly within the resource management search


5. Conemu will open automatically and jump to that directory


6. Create a python3.6-based only Django environment

Conda Create python=3.6 django-n PY3.6-DJ





01--Creating a 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.