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 

   1. select Tools
   2. select Python Path Manager
   3. add path in this form 
   */home/michael/path/to/my_project_virtualenv/lib/python2.7/site-packages*
   4. ipython console
      - import sqlobject
   
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.


On Monday, 26 October 2015 15:30:21 UTC+2, Sayth Renshaw wrote:
>
> Hi all
>
> Is there an easy way to switch between python virtual environments in 
> spyder? 
>
> I am on windows and using anaconda with python 3.4, I do create envs in 
> both python2 and python3 and wondering if there was an obvious way to 
> achieve this?
>
> Cheers
>
> Sayth
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to