awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 769 forks source link

Installation error with incompatible prompt-toolkit #257

Closed kaisecheng closed 3 years ago

kaisecheng commented 3 years ago

A fresh install failed with incompatible prompt-toolkit > pip3 install aws-shell

ERROR: jupyter-console 6.1.0 has requirement prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0, but you'll have prompt-toolkit 1.0.18 which is incompatible.
ERROR: ipython 7.16.1 has requirement prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0, but you'll have prompt-toolkit 1.0.18 which is incompatible.

Try to install prompt-toolkit >= 2.0.0 < 3.0.0 pip3 install 'prompt-toolkit<3.0.0,>=2.0.0' --force-reinstall

ERROR: aws-shell 0.2.2 has requirement prompt-toolkit<1.1.0,>=1.0.0, but you'll have prompt-toolkit 2.0.10 which is incompatible.

OS: macOS Catalina version 10.15.7 pyenv: 1.2.22 python: 3.8.3 aws-shell-0.2.2

uninstall prompt-toolkit, jupyter-console, ipython and aws-shell and reinstall doesn't help

kaisecheng commented 3 years ago

upgrading pyenv to 1.2.23 and python to 3.9.1 solved the issue