Why Python Package Manager gives error as "ImportError: cannot import name 'InvalidSchemeCombination'" on Ansible Tower?

Solution Verified - Updated -

Issue

  • Why we are unable to use any Python Packages for Ansible Automation Tasks in Ansible Tower Virtual Environment?
  • How to resolve the following error message when running any pip3 commands such as pip3 freeze, pip3 list, etc as a root user from the Default /var/lib/awx/venv/ansible Virtual Environment in Ansible Tower?

    ImportError: cannot import name 'InvalidSchemeCombination'
    

Environment

  • Red Hat® Ansible Tower

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