coderhs
coderhs

Reputation: 4837

How to upgrade pygments.rb use and the latest library of pygments(python)

I am using pygments.rb in one of my projects I want to upgrade the python library which is used by pygments.rb to the latest version.

I am using a ubuntu 12.04 machine.

Upvotes: 0

Views: 1519

Answers (1)

Matt
Matt

Reputation: 74761

The Pygments Python package provides the command line utility pygmentize and so does the the ubuntu package python-pygments. Pygments is at 1.6 and ubuntu is at 1.4.

If you are currently using the ubuntu package you may want to remove it to avoid any conflicts

sudo apt-get remove python-pygments

The easiest way to manage Python packages is with pip

sudo apt-get install python-pip python-dev build-essential

Then install/upgrade the Pygments package

sudo pip install Pygments --upgrade

Upvotes: 3

Related Questions