osx - Is there danger in installing 2 versions of Anaconda for Python on one machine? -


some background: have intel mac osx (running yosemite) , use pycharm community edition main ide. code in python 3.4 however, i'm taking mit ocw courses use python 2. make easier on myself when using mit's skeleton files have downloaded python 2.7 , switch pycharm interpreter depending on project.

here's question:

i'm wondering if run trouble downloading 2.7 , 3.4 versions of anaconda.

if ok, need special import commands depending on version of python i'm coding in?

thanks! happy add clarity / more info if isn't enough answer questions.

there's no danger, it's not recommended way of achieving this. rather, should use conda, package manager comes anaconda, create environment other version of python. instance, if started anaconda3,

conda create -n python27 python=2.7 anaconda 

would create environment called python27 in ~/anaconda/envs/python27 python 2.7 , packages anaconda. point ~/anaconda/bin/python or ~/anaconda/envs/python27/bin/python depending on version of python want. in terminal, use source activate python27 , source deactivate switch between two.

see http://conda.pydata.org/docs/ more information on conda.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -