Implementing multiple versions of Python coexistence in anaconda

Source: Internet
Author: User

  1. Check the Conda version

    Under CMD in Windows, enter

    Conda--version

    650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/D4/wKioL1mW9ITxfl-2AAAEqMcLgSc252.png "title=" 1.png "alt=" Wkiol1mw9itxfl-2aaaeqmclgsc252.png "/>

    One of the native Anaconda comes with the Python3.6 version.


  2. Create an environment named Python27 in Conda and download the corresponding version of Python2.7

    cmd input

    conda Create--name python27 python=2.7 

    650) this.width=650, "src=" Https://s3.51cto.com/wyfs02/M00/9E/D4/wKioL1mW9NjjE8loAABWp8zOXEs791.png "title=" 2.png " Width= "height=" 395 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:600px;height:395px; "alt=" Wkiol1mw9njje8loaabwp8zoxes791.png "/>


  3. Activation python27

    cmd enter

     activate python27 

    650) this.width =650; "src=" Https://s4.51cto.com/wyfs02/M00/00/24/wKiom1mW9TWAfwb3AAAMFeBrT2k965.png "title=" 3.png "width=" 600 " height= "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:600px;height:90px; "alt=" Wkiom1mw9twafwb3aaamfebrt2k965.png "/>


  4. cmd enter

      Conda install spyder 


  5. Download Jupter notebook

    cmd enter

     conda install jupyter 

    650) this.width=650, "src=" Https://s3.51cto.com/wyfs02/M02/00/24/wKiom1mW9W2BQ4cKAAAmfoP161Y687.png "title=" 5.png " Width= "650" height= "225" border= "0" hspace= "0" vspace= "0" style= "width:650px;height:225px;" alt= " Wkiom1mw9w2bq4ckaaamfop161y687.png "/>


  6. Open the envs\python27\scripts folder in the Anaconda3 installation directory and find Spyder.exe is the Spyder for Python2.7.

    650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/D4/wKioL1mW9XiwAMMaAAHXWpoGtB8494.png "title=" 6.png "Width=" 650 "height=" 387 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:650PX;HEIGHT:387PX; "alt=" Wkiol1mw9xiwammaaahxwpogtb8494.png "/>


  7. When writing Python3, open the Python3.6 Spyder and open the Python2.7 Spyder when writing Python2.



This article from "Tong Xin Blog" blog, please be sure to keep this source http://tong707.blog.51cto.com/12527988/1957496

Implementing multiple versions of Python coexistence in anaconda

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.