Back to python 2.7 Anaconda

I installed anaconda with python 3.4 for Windows 7 64 bit, but want to use python 2.7 environment.

I did the following on the command line

conda create -n py27 python=2.7 anaconda

and then

activate py27

now i can read

[py27] SOMEPATH\Continuum\Anaconda3>

but still typing

python --version 

leads to

Python 3.4.1 :: Anaconda 2.1.0 (64-bit)

I was expecting it to show python version 2.7, so my question is

Any ideas on where I might be wrong?

+4
source share
1 answer

Try changing the directory to something other than the Anaconda directory (for example, cd C:\). The Windows shell always first searches for the current directory, so if you are in the Anaconda directory and type python, it will run python.exein that directory.

+2
source

All Articles