While running python utilities, getting "SETUPTOOLS WILL STOP WORKING IN A SUBSEQUENT RELEASE" message

Solution In Progress - Updated -


  • While running any command that utilizes python, getting the following error output:
/opt/rh/python27/root/usr/lib/python2.7/site-packages/pkg_resources/py2_warn.py:19: UserWarning: ************************************************************
You are running Setuptools on Python 2, which is no longer
supported and
in a subsequent release. Please ensure you are installing
Setuptools using pip 9.x or later or pin to `setuptools<45`
in your environment.
If you have done those things and are still encountering
this message, please comment in
about the steps that led to this unsupported combination.
  sys.version_info < (3,) and warnings.warn("*" * 60 + msg + "*" * 60)


  • Red Hat Enterprise Linux 7
  • Upstream setuptools >= 45

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content