I don't know about switching versions, other than installing both
spyder (for Python2)
and
spyder3 (for Python3) on your system. In my Linux package manager, I have the optional to install them independently.
I don't know if this helps, but I found a way to effectively activate a virtualenv within Spyder. Then I could run scripts inside spyder and do imports from the iPython console.
For example, in the command-line, if you have virtual environment with sqlobject installed in it...
$ virtualenv my_project_virtualenv
$ source my_project_virtualenv/bin/activate
$ pip install sqlobject
Then, in Spyder
- select Tools
- select Python Path Manager
- add path in this form /home/michael/path/to/my_project_virtualenv/lib/python2.7/site-packages
- ipython console
If that doesn't work straight away, maybe open a new iPython console, or restart spyder itself.
You can add multiple environments added like that, though I guess there is a problem switching between them since they are all active. And they might each have different versions of the same package.