bash - Installing Python 2 and 3 separately -
is there way install python 2 , python 3 on mac osx , able switch , forth? utilize python 2 , 3 development , used able virtualenv thing source deactivate development environment. wasn't sure how set , started confusing compiler because apparently installed modules in 1 place , works on python 2 not 3 (or vice versa) , things on place. wiping out whole laptop , time want installation business right. there way can switch , forth python 2 , 3 compiler detecting 1 set of library?
firstly, install homebrew - it's fundamental tool managing installation on mac.
now, using homebrew, install separate versions of python , and python 3:
$ brew install python ... $ brew install python3 this should automatically install relevant versions of pip each version of python virtualenv. can create virtual environment python 2 project:
$ virtualenv --python=python2.7 my_project and python 3 one:
$ virtualenv --python=python3 my_py3_project and activate/deactivate them need.
python bash python-2.7 python-3.x osx-mavericks
No comments:
Post a Comment