How can I change the default Python version on Max OSX using macport?

English: Python logo Deutsch: Python Logo

English: Python logo Deutsch: Python Logo (Photo credit: Wikipedia)

I am studying Google Compute Engine, this Infrastructure-as-a-Service (IaaS) permits you to run your large-scale computing workloads on Linux virtual machines hosted on Google’s infrastructure.

  1. First install the python_select package: sudo port install python_select
  2. Already now you can check which python distributions are available on you system. Just issue the command: port select –list python
  3. Print the python version which is set at the moment: port select –show python
  4. To switch to python 2.7 version: sudo port select –set python python27-apple

[1] MacPorts Project: http://www.macports.org
[2] IaaS: http://en.wikipedia.org/wiki/Infrastructure_as_a_service#Service_models

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s