I had spyder installed with Python 3.4 on Windows Vista.
Today I wanted to run spyder with Python 2.7. So, went through this post & installed Python 2.7 for spyder. Now, how do I start spyder with Python 2.7 instead of the default 3.4? (I wanted to comment at the post & ask @user3058525 but could not due to reputation restriction)
Could anyone help out?
P.S: I could create a virtualenv. But want to work in spyder...
Found a workaround to use Spyder on python 2.7. setup two virtual environments for Python 2.7 and 3.6. Done! I tried this and got the following error with starting the kernel in the ipython console:
Just run Although clicking on the Spyder icon will not allow you to open two instances, you can open a second instance by simply going to the folder where spyder.py is and running spyder.py from the command line. Further, you could make an icon for your desktop that simply runs spyder.py from its location.
Create a conda environment with Spyder 3.3.6, which is the stable version for Spyder 3 that supports Python 2. Create a conda environment with Spyder 4.0.1, which is the last Spyder version that has all packages for Python 2.
You can use the --new-instance option as well. Just run where do you write it? @Matan in the command prompt. If not working then in the Anaconda prompt. Then deselect [✔] Use a single instance, so it becomes [] Use a single instance, which will result in a new window opening each time Spyder is launched. Still working for me in Spyder 5.1.5.
@Roberto: Gotcha!
Learnt that we can check for environments installed in conda using conda info -e
It showed the path for installed python 2 environment as C:\Users\ramprasad.g\AppData\Local\Continuum\Anaconda3\envs\python2\
Spyder IDE for Python 2 was in Scripts folder inside envs\python2 (C:\Users\ramprasad.g\AppData\Local\Continuum\Anaconda3\envs\python2\Scripts
)
Clicked on it & voila, Spyder started with Python 2.7!
Thank you...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With