Install Prettytable Python For Mac

Speed is fine, got about 110MB/s write and 180MB/s read with my SanDisk stick.Sadly I couldn't test my external 2.5' disk yet, because the USB cable is too wide to insert it beside the cards power cable. Ake usb 3.0 card drivers for mac free. Only issue so far: It disappears during sleep, so I have to pull it out and insert it to make it work again.

The official home of the Python Programming Language. While Javascript is not essential for this website, your interaction with the content will be limited.

Python for Mac OS X

Python comes pre-installed on Mac OS X so it is easy to startusing. However, to take advantage of the latest versions ofPython, you will need to download and install newer versionsalongside the system ones. The easiest way to do that is toinstall one of the binary installers for OS X from thePython Download page. Installers areavailable for the latest Python 3 and Python 2 releases thatwill work on all Macs that run Mac OS X 10.5 and later.

Python releases include IDLE, Python's built-in interactivedevelopment environment. If you download and install Pythonfrom the release page, you may also need to download and installa newer version of Tcl/Tk for OS X. See theIDLE and Tkinter on OS X page formore information.

You can run a Python interpreter by double-clicking onApplications / Utilities / Terminal and typing python3 (if you'veinstalled a version of Python 3) or python (to use Python 2) inthe window that opens up. You can also launch IDLE for the Pythonversion you have installed by double-clicking its icon inthe appropriate Python version folder in the Applications folderor you can also just type idle3 or idle in a terminal window.

There are many thousands of additional Python software packagesavailable through PyPI, the PythonPackage Index. We recommend you use thepip tool to simplifyinstalling and managing additional packages. pip is includedwith Python 3.4 releases; for earlier releases, follow the pipinstall instructions.

Among the packages available through PyPI are some that arespecifically for OS X environments. Among these are:

  • pyobjc which providesa bridge between Python and Objective-C, allowing you to writefull-featured native Cocoa applications in pure Python.
  • py2app which allowsyou to make standalone OS X double-clickable application bundlesand plugins from Python scripts.

For more information about Python on OS X, see the mailing list and archivesfor thePython-Macintosh Special Interest Group.

No module named

Alternative Packages for Mac OS X.

  • ActiveState ActivePython(commercial and community versions, including scientific computing modules).
  • Enthought Python DistributionThe Enthought Python Distribution provides scientists with a comprehensive setof tools to perform rigorous data analysis and visualization.

Python and a comprehensive set of third-party packages and libraries are alsoavailable from several open source package manager projects for OS X,including:

The easiest way to install PrettyTable is to use the 'easy_install' command which is part of Python setuputils. From the command line, you can simply type

and everything should just work.

You can upgrade an existing PrettyTable installation to a newer version by typing

If you can't use easy_install for some reason, you can always do the installation manually. Download the latest version of PrettyTable from the Downloads tab at this Google code project site. Save the file as 'prettytable.py' (not prettytable-x.y.py) in your Python installation's 'site-packages' directory. Depending on your operating system, this directory might be something like:

  • FreeBSD: usr/local/lib/python2.5/site-packages/
  • Linux: /usr/lib/python2.5/site-packages/ (some distros will be more like Free/OpenBSD)
  • NetBSD: /usr/pkg/lib/python2.5/site-packages/
  • OpenBSD: usr/local/lib/python2.5/site-packages/
  • OS X: <I've never used it, can someone let me know?>
  • Windows: C:Program FilesPython25Libsite-packages

That should be enough for 'import prettytable' to work.

Clone this wiki locally