Follow these instructions to upgrade the New Relic Python agent. To ensure you have 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
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:
- Remove the current New Relic package.
- 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: