小编FeD*_*Dos的帖子

无法运行 AWS CLI:“ImportError:无法从‘botocore.docs.bcdoc’导入名称‘docevents’”

linux 新手,我刚刚安装了 AWS CLI 以及 Python3 和 boto3,但是当我尝试运行 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)
Run Code Online (Sandbox Code Playgroud)

linux command-line amazon-web-services

4
推荐指数
1
解决办法
3962
查看次数

标签 统计

amazon-web-services ×1

command-line ×1

linux ×1