python - How to run Spyder in virtual environment? -


i have been using spyder installed with anaconda distribution uses python 2.7 default. need set development virtual environment python 3.4.

top 2 suggestions after research online are:

  1. to set virtual environment first , point change preferences of spyder , e.g here;
  2. to install spyder dependencies, pyqt4, in virtual environment itself, e. g. here ;

both recommendations cumbersome , not smart options development.

is there solution allow run spyder required python version automatically after activating required virtual environment?

there option create virtual environments in anaconda required python version.

conda create -n myenv python=3.4 anaconda 

this create virtual environment virtualenv. activate :

source activate myenv   # (in linux) activate myenv          # (in windows - note should in c:\anaconda2 directory) 

to check current environment has been changed:

conda info -e 

and run spyder python 3.4 type:

spyder 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -