How do I get Anaconda3 to see Python 2.7 after installing it? -
How do I get Anaconda3 to see Python 2.7 after installing it? -
so, set anaconda(3) on windows 8 computer, worked without problems. now, need installation of python 2, created appropriate additional environment. sadly, after activating environment, python interpreter sees stays same. doing wrong? (shortened) console output:
c:\users\me\appdata\local\continuum\anaconda3>conda create -n py27 python=2.7 anaconda fetching bundle metadata: .. solving bundle specifications: . bundle plan installation in environment c:\users\me\appdata\local\continuum\anaconda3\envs\py27: <snip> next new packages installed: _license: 1.1-py27_0 anaconda: 2.1.0-np19py27_0 <snip> python: 2.7.8-0 <snip> proceed ([y]/n)? y menuinst-1.0.4 100% |###############################| time: 0:00:00 239.25 kb/s fetching packages ... _license-1.1-p 100% |###############################| time: 0:00:00 432.62 kb/s anaconda-2.1.0 100% |###############################| time: 0:00:00 150.62 kb/s <snip> extracting packages ... [ finish ] |#################################################| 100% linking packages ... [ finish ] |#################################################| 100% # # activate environment, use: # > activate py27 # c:\users\me\appdata\local\continuum\anaconda3>python --version python 3.4.1 :: anaconda 2.1.0 (64-bit) c:\users\me\appdata\local\continuum\anaconda3>activate py27 activating environment "py27"... [py27] c:\users\me\appdata\local\continuum\anaconda3>python --version python 3.4.1 :: anaconda 2.1.0 (64-bit) <why isn't python 2.7.8 visible here??>
doing echo %path%
before , after activation gives output
c:\users\me\appdata\local\continuum\anaconda3>echo %path% c:\programdata\oracle\java\javapath;c:\program files (x86)\nvidia corporation\physx\common;c:\windows\system32;c:\windows;c:\windows \system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\ati technologies\ati.ace\core-static;c:\program fi les (x86)\pdftk\bin\;c:\users\me\appdata\local\continuum\anaconda3;c:\users\me\appdata\local\continuum\anaconda3\scripts c:\users\me\appdata\local\continuum\anaconda3>python --version python 3.4.1 :: anaconda 2.1.0 (64-bit) c:\users\me\appdata\local\continuum\anaconda3>activate py27 activating environment "py27"... [py27] c:\users\me\appdata\local\continuum\anaconda3>echo %path% c:\users\me\appdata\local\continuum\anaconda3\envs\py27;c:\users\me\appdata\local\continuum\anaconda3\envs\py27\scripts;c: \programdata\oracle\java\javapath;c:\program files (x86)\nvidia corporation\physx\common;c:\windows\system32;c:\windows;c:\windows\s ystem32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\ati technologies\ati.ace\core-static;c:\program file s (x86)\pdftk\bin\;c:\users\me\appdata\local\continuum\anaconda3;c:\users\me\appdata\local\continuum\anaconda3\scripts [py27] c:\users\me\appdata\local\continuum\anaconda3>python --version python 3.4.1 :: anaconda 2.1.0 (64-bit)
this looks correct. additionally, python.exe
in \envs\py27\python.exe
is 2.7.8 python!
on windows current path takes precedence on path
variable when accessing binaries. thus, since still in anaconda3
directory containing python.exe
, cmd
take 1 instead of looking via path
have returned python 2.7 executable. cd
different path , fine.
python python-2.7 anaconda
Comments
Post a Comment