i have local install of python in mac older version of python. instance have python 2.7.10. python 2.7.6 particular project development. how can install 2.7.6, without impacting mac's default python or installed versions?
you should learn using virtualenvs. virtual environment tool keep dependencies required different projects in separate places, creating virtual python environments them. solves “project x depends on version 1.x but, project y needs 4.x” dilemma, , keeps global site-packages directory clean , manageable.
here have tutorial mac os, it's written yosemite should work on other os versions too.
as mentioned in question: use different python version virtualenv, can use virtualenv -p /usr/bin/python2.6 <path/to/new/virtualenv/>
command specify python version virtualenv.
Comments
Post a Comment