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.
-
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 "/>
-
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 "/>
-
cmd enter
Conda install spyder
-
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 "/>
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 "/>
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