Dec-09-2017, 03:23 PM
Hi,
I'm on os x with Python 2.7 in usr/local/bin (Terminal bash: >>>which python) but have also Enthought Canopy installed (path follows), where I have been doing most of my coding. I use a few cronjobs and have thus set $PYTHONPATH to "/Users/me/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/". Now I would like to install Python3 and use PyCharm for Version 3 while keeping the Canopy and cronjobs functional.
I'm pretty clueless on how to get there and am missing a structured picture of what needs doing: Where and how do I install P3? How do I have to adjust $PATH and/or $PYTHONPATH to use both Versions. I would currently prioritize P2 as all my coding/cronjobs rely on this. I have read about the possibility of using Python site module, but TBH I don't understand what to do there and I would not know how to include a path in my python file. I am also not sure wether virtualenv is the right solution. Ideally, I can simply switch using P2 and P3 - is this possible?
I'm on os x with Python 2.7 in usr/local/bin (Terminal bash: >>>which python) but have also Enthought Canopy installed (path follows), where I have been doing most of my coding. I use a few cronjobs and have thus set $PYTHONPATH to "/Users/me/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/". Now I would like to install Python3 and use PyCharm for Version 3 while keeping the Canopy and cronjobs functional.
I'm pretty clueless on how to get there and am missing a structured picture of what needs doing: Where and how do I install P3? How do I have to adjust $PATH and/or $PYTHONPATH to use both Versions. I would currently prioritize P2 as all my coding/cronjobs rely on this. I have read about the possibility of using Python site module, but TBH I don't understand what to do there and I would not know how to include a path in my python file. I am also not sure wether virtualenv is the right solution. Ideally, I can simply switch using P2 and P3 - is this possible?