Switch between spyder for python 2 and 3

女生的网名这么多〃 提交于 2019-12-03 12:42:57
Ari Cooper-Davis

Spyder is launched from the environment that you're using.

So if you want to use python 3 in Spyder then you activate python34 (or whatever you named the environment with Python 3) then run spyder.

If you want to use python 2 in Spyder then you deactivate the python3 environment (or activate an environment in which you installed Python 2) then run spyder.

I do not believe that you can change environments once Spyder is launched.

N.B. you may need to install Spyder in each environment, depending on your set up, by first activating the environment then using conda install spyder.

Just go to the directory where you have installed Spyder(use cd in command prompt), for me, it looks like "C:\Users\Rohan\Anaconda2" and type spyder in cmd. it will run your Spyder IDE.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!