TeaTime for Basic Python

Learning Python

A good resource is Python 2 at http://diveintopython.org/ by Mark.P and his new book on Python 3 http://diveintopython3.org/ . Python is a young but largely stable language for desktop and web application development. Its a good language for prototyping as its quick to develop with.

Micro Framework

The new generation of framework favours microframeworks such as http://flask.pocoo.org/ or http://bottlepy.org/docs/dev/

Get developing in minutes using microframeworks which is part of future of cloud computing.

Installing Python

The quickest way to install python in Mac with a few clicks is Enthought (http://www.enthought.com/). If you are academic or have a academic email, you can apply for a free enthought full version. Its a quick simple way to get a python installation up and running. On the forums and speaking to people, many dislike enthought for its rigidness. If you are new to python, I recommend using it just to get an idea. When you are familar, switch back to another package of python such as vanilla version of python or portablepython (http://www.portablepython.com/).

If you are using Mac, chances are you have python already running. To test just use terminal (application > terminal) in  type:

> python  

You can visit python.org for the newest python package (http://www.python.org/). I recommend the 2.x.x series as opposed to the 3.x.x version, for the time being.

Using Homebrew

Few days ago, I came across Homebrew http://mxcl.github.com/homebrew/ . Its a brilliant package manager for applications if you are using Mac. Think of it like the installed programs application on windows which provide uninstallers

So why did I mention homebrew? Install python with homebrew is probably one of the greatest things i did last year. It manages python installs cleanly and you can install applications alongside python without much problems. 

Installing a package manager

After installing, you can install setuptools. using the following. Setuptools / Pip / Distribute and Easy_install are all installation package managers. They make sure your python extensions are easy to add and manage. Setuptools and Easy_install are from older generation and Pip / Distribute are newer. All python extensions (at least official ones) are managed in pypi (http://pypi.python.org/pypi). Others prefer to install via url using CURL (http://curl.haxx.se/)

> sudo easy_install setuptools
> sudo easy_install pip

 and use freeze to see the installed packages in your python

> pip freeze

Installing Scientific packages

The pain of installing matplotlib on macOSX has led to many debates. Apparently the problem lies on matplotlib releases only 32bit installation versions for MacOSX (Snow Leopard / Mountain Lion) where both the normal releases have 64bit python installations. This makes it unusable.

Quickest and easiest method is from enthought. http://www.enthought.com/products/epd.php

here is a good reference: http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#numpy

Adding PyDev on Aptana

  • goto help->software updates-> find and install
  • add a new remote site
  • put in “http://pydev.sourceforge.net/updates”
  • after installation goto window->preferences
  • navigate to pydev->interpreter – pydev
  • add in the new python location -> library->frameworks->python.framework->versions->2.6->bin->python
  • highlight the newly added component on the top window then click okay. <gives you an error if you do not highlight it.

Reference

  • http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#lion 


Top Home mirageglobe




Leave a Reply


Recent Posts
Improving terminal load times · Extracting OVF from VMware ESXI 6.0 · Installing LMDE 2 Betsy · SSL Certificates and Encryption · Machine Learning with Spark · Installing Lubuntu in Virtualbox · Getting started with Docker · Ubuntu upgrade limited boot space · Top 10 Browsers Overview · Taovilla Oracle app beta built using meteorjs · Setting up Debian on VirtualBox · The HomeBrew doctor · Caffeine icon for ubuntu / lubuntu · Updating wordpress without FTP · Updating wordpress without FTP · Preinstalled Languages on mainstream OS · Reminisce of Xcom · Java install on Ubuntu · Display image as ASCII art · VirtualBox Resizing Lubuntu Guest Linux · Introducing Samurai · Macbook Pro Key mapping for Lubuntu · Common Apache Nginx commands · Refreshing Git versioned files · Basic Environments for Jira · Converting a hg mercurial to git repository · Long term domain name costs comparison · SVG Graphing · 2 ways to Php install on mac · Introducing Samurai and Installing Meteorjs to own server · Improving the speed of Linux Mint · SVG graphics with Javascript · FTP Clients for Mac OS X · Windows Apps on Mac · Programming Languages Compared · Hackers Natural Cure · Publishing on Ebooks · Editors such as SublimeText2 · Good Coding Practice · LMDE Linux Mint Debian Edition · Heroku Webapp · Hadoop Single node 32bit on 12.10 Mint XFCE · Tracing User Behaviour FRUBO · Installing Nginx on MacOSX · Installing Ruby on MacOS X · Turn off annoying compress outlook message · HTML5 Apps on Cordova PhoneGap with MacOSX · Choosing and using Latex · Reviewing Javascript World · Draw up an Ubuntu Server Environment · Draw up a Lightweight Mail Server · Draw up a Web Database · Php CMS and Frameworks · Drawing up a Web Service · Draw up a Virtual Cloud Server · Unlocking and Flashing your ZTE Blade · Pip error in Python with Homebrew · HomeBrew for OSX · Windows and Linux Desktop Security · TexMaker with Glossary on Mac · Quick way to OpenStack on Lubuntu · Ancient IT Dictionary · TeaTime for Basic Python · CVs and Jobhunting · Chinese Input on Linux Ubuntu · Research in Computer Science · Reviewing Applications on My Mac · Reviewing Applications on My Windows · Installing Windows XP · Installing wireless on Linux Ubuntu or Mint · Restoring an Amazon EC2 Backup · Mac Update PASV problem · Reviewing Green Computing · Consuming the Cloud Storage Space · Using Cherokee and WordPress Whine · Disabling Lubuntu Screensaver · Installing Lubuntu from USB drive · Searching for a Micro Mini CMS · ReStructuredText in Python · Rackspacecloud Vs Amazon · Hacking your old PSP · Attending Atlanta 55th MMM Conference · Smart devices for everyday use · Creative Programmers · Linux Settings · Embarking on Further Education · Machine Learning · Mac Tips – Viewing hidden files on desktop · Creating PDF files for free · Online Media for All · C# ASP Settings · SVN Git and Mercurial Versioning · Getting the last inserted id using datasets · Think Lucky and be Happy · AngieGallery Design · AceTravel Design · Letter to Mum · Prison Vs Work · Irish Daughter · Are you a carrot, an egg or a coffee bean? · Home Media Entertainment Setup · Collection of Interesting sites · Studying in London · Great Oriental eats in London · CMS Joomla, WordPress, Drupal compared ·

© 2017 · MirageGlobe · using zenifywordpress theme by www.dracoturtur.com ·
  · RSS Feed