Skip to content
Jamie Norrish edited this page May 22, 2014 · 17 revisions

The following notes provide some guidance for installing Python and other packages that tacl depends on. Once Python is installed, the best approach is to run pip install tacl, which will install tacl and its Python dependencies; where there is some problem with that, hopefully these notes will be useful.

Mac OS X

The following instructions were provided by a Mac OS X user (using 10.9).

  1. Download and unpack the tacl code at https://github.com/ajenhl/tacl/archive/master.zip
  2. Install the latest version of MacPorts: https://www.macports.org/install.php
  3. Install Xcode and the Xcode Command Line Tools.

In a Terminal, run the following:

  1. sudo xcodebuild -license (agree to Xcode license)
  2. sudo port selfupdate (update MacPorts, if it is an old installation)
  3. sudo port install python34 (install Python3.4 via MacPorts)
  4. sudo port select --set python python34 (set Python3.4 as the default version)
  5. sudo port install py34-lxml (install lxml)
  6. sudo port install py34-pandas (install pandas)
  7. sudo port install py34-six (install six, due to the MacPorts version of dateutils not pulling in this requirement)
  8. cd [directory where tacl was unpacked to]
  9. sudo python setup.py install (install tacl)
  10. tacl -h (get the main tacl help)

If the last step produces an error that the tacl command was not found, this is likely due to its location not being in the PATH environment variable. Look for a line such as "copying build/scripts-3.4/tacl -> /opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin" in the output of the "sudo python setup.py install" command; the destination directory listed there needs to be added to the PATH. This can be done by following the instructions at http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/. After that is done (and remember that you need to reload your .profile, or open a new Terminal, first), tacl -h should print out the basic usage information for tacl, and you are ready to start using the program!

Clone this wiki locally