SolvedZappa AttributeError: 'module' has no attribute 'get_installed_distributions'


When deploying a project with "zappa deploy [project-name]" I get the error: AttributeError: 'module' has no attribute 'get_installed_distributions'

I honestly do not know what is wrong or what I am missing. Any help please provide simple step by step instructions to solve this.
zappa error

29 Answers

✔️Accepted Answer

You probably have a newer pip, they made changes to their public api top level functions recently. Try downgrading with pip install pip==9.0.1 or to 8.1.2. pypa/pip#5154

Other Answers:

Thank you @neotheicebird! I downgraded to 9.0.3 and it fixed the issue for me:
$ pip install pip==9.0.3

AttributeError: 'pip' has no attribute 'get_installed_distributions'

For pip == 10.0.0

You can downgrade pip to >= 9.0.0 to fix this

@scoates how come you don't consider this as a Zappa issue? adjusting to pip is better than downgrading to Zappa

Downgrading to pip 9.0.3 (both globally and in virutualenv) worked for me too. But this sounds like a Zappa issue, not a pip issue.

More Issues: