create a new envirement.
conda create -n envpy34 python=3.4 anaconda
active the new envirement
active envpy34
to check the current environment
conda info -e
and now run Spyder with Python 3.4 just type:
spyder
install spyder in the new environment:
conda install -n envpy34 spyder
To see a list of all of your environments, in your Terminal window or an Anaconda Prompt, run:
conda info --envs
OR
conda env list
Install a list of packages into a specified conda environment.
The arguments may be packages specifications (e.g. bitarray=0.8),
**usage**: “conda install [-h] [–yes] [–dry-run] [-f] [–file FILE] [–no-deps] [-m] [–no-pip] [–use-local] [-c CHANNEL] [–override-channels] [-n NAME | -p PATH] [-q] [package_spec [package_spec …]]
Install a list of packages into a specified conda environment.
The arguments may be packages specifications (e.g. bitarray=0.8),“
*package_spec*
package versions to install into conda environment
optional arguments:
-h, –help show this help message and exit
–yes do not ask for confirmation
–dry-run only display what would have been done
-f, –force force install (even when package already installed), implies –no-deps
–file FILE read package versions from FILE
–no-deps do not install dependencies
-m, –mkdir create prefix directory if necessary
–no-pip do not use pip to install if conda fails
–use-local use locally built packages
-c CHANNEL, –channel CHANNEL
additional channel to search for packages. These are URLs searched in the order they are given (including file:// for local directories). Then, the defaults or channels from .condarc are searched (unless –override-channels is given). You can use ‘defaults’ to get the default packages for conda, and ‘system’ to get the system packages, which also takes .condarc into account. You can also use any name and the .condarc channel_alias value will be prepended. The default channel_alias is http://conda.binstar.org/
–override-channels Do not search default or .condarc channels. Requires –channel.
-n NAME, –name NAME name of environment (in ROOT_DIR/envs)
-p PATH, –prefix PATH
full path to environment prefix (default: ROOT_DIR)
-q, –quiet do not display progress bar
examples:
conda install -n myenv scipy
pip install D:\Python\Software\OR\numpy-1.13.3+mkl-cp36-cp36m-win_amd64.whl
reference:
https://conda.io/docs/user-guide/tasks/manage-environments.html
https://conda.io/docs/user-guide/tasks/manage-python.html
https://stackoverflow.com/questions/30170468/how-to-run-spyder-in-virtual-environment