Unable to Run Aws Cli: "Importerror: Cannot Import Name 'Docevents' from 'Botocore. Docs. Bcdoc'"
New to Linux, I Just Installed Aws Cli Alongside Python3 and Boto3 but I Get This Error When I Tried Running Aws Cli. Fdostuni@Pg022: ~$ Sudo. /Aws/Install You...
New to linux, I just installed AWS CLI alongside Python3 and boto3 but I get this error when I tried running AWS CLI.
fdostuni@PG022:~$ sudo ./aws/install
You can now run: /usr/local/bin/aws --version
fdostuni@PG022:~$ aws --version
Traceback (most recent call last):
File "/usr/bin/aws", line 19, in <module>
import awscli.clidriver
File "/usr/lib/python3/dist-packages/awscli/clidriver.py", line 36, in <module>
from awscli.help import ProviderHelpCommand
File "/usr/lib/python3/dist-packages/awscli/help.py", line 23, in <module>
from botocore.docs.bcdoc import docevents
ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' (/home/fdostuni/.local/lib/python3.8/site-packages/botocore/docs/bcdoc/__init__.py)
1 Answer
try running
pip3 install --upgrade awscli
or
pip install --upgrade awscli