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:
- to set virtual environment first , point change preferences of spyder , e.g here;
- 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
Post a Comment