每次关注the instructions to install the AWS CLI时,我都会收到以下错误:
ImportError:无法导入名称' main'
这是我的终端的输出(显示每一步)
$ curl -O https://bootstrap.pypa.io/get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1603k 100 1603k 0 0 1122k 0 0:00:01 0:00:01 --:--:-- 1123k
$ python3 get-pip.py --user
Collecting pip
Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-10.0.1
$ pip3 install awscli --upgrade --user
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in <module>
from pip import main
ImportError: cannot import name 'main'
运行pip版本10.0.1和Python 3.6。发生了什么事?