Reputation: 199
strong textSetting up AWS EB CLI Installer, on running ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer
while script was installing Python-3.7.2 throws error
BUILD FAILED (Ubuntu 18.04 using python-build 20180424)
Inspect or clean up the working tree at /tmp/python-build.20210401161307.18757
Results logged to /tmp/python-build.20210401161307.18757.log
Last 10 log lines:
sys.exit(ensurepip._main())
File "/tmp/python-build.20210401161307.18757/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
default_pip=args.default_pip,
File "/tmp/python-build.20210401161307.18757/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/tmp/python-build.20210401161307.18757/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
Makefile:1130: recipe for target 'install' failed
make: ***[install] Error 1
Exiting due to failure
Upvotes: 1
Views: 2439
Reputation: 199
The command sudo apt-get install zlib1g-dev
solved the issue, then proceeded to running ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer
which worked fine.
Upvotes: 1