Upgrade the Python agent

Follow these instructions to upgrade the New Relic Python agent.

To see the most up-to-date agent version, check the Python agent release notes.

Update via Python package index (PyPi)

The New Relic Python agent package is listed on PyPi at http://pypi.python.org/pypi/newrelic. To update with a specific package, follow the corresponding instructions:

Python package Installation instructions

To update the newrelic package directly from PyPi, run:

pip install --upgrade newrelic

If you have New Relic in your requirements.txt file, you can do a mass update of all required packages by running:

pip install -r requirements.txt

To update using easy_install, run:

easy_install --upgrade newrelic

Using pip is recommended over using easy_install, because pip will correctly remove old versions of the agent software when upgrading.

buildout Install the package by creating an appropriate section for the newrelic package using the zc.recipe.egg recipe.

Download package manually

To manually download the New Relic package:

  1. Remove the current New Relic package.
  2. Download the new package and install it by following the instructions in Python agent installation.

Using pip is recommended over the manual installation method, because pip removes old versions of the agent automatically when updating.

For more help

Additional documentation resources include:

Recommendations for learning more: