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
Post a Comment