由于硬件限制,我只能使用Windows 7。这是我完成所有作业的唯一机器。我安装了cygwin广告,想使用awscli。
我在这里How to get AWS command line interface to work in cygwin读了一些文章http://wiki.fast.ai/index.php/Awscli_in_cygwin 我尝试过的上述答案
pip uninstall awscli
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin
apt-cyg install python
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install awscli
当我这样做
$ aws --version
aws-cli/1.15.81 Python/2.7.14 CYGWIN_NT-6.1/2.10.0(0.325/5/3) botocore/1.10.80
现在,当我执行aws配置时,出现错误
DEEL@DEEL-PC ~/.aws
$ aws configure
AWS Access Key ID [****************NLVA]:
AWS Secret Access Key [****************2YhC]:
Default region name [None]: ap-south-1
Default output format [None]: text
[Errno 2] No such file or directory: ''
它在抱怨什么,我该如何摆脱呢?
$ cat config
[default]
output = text
region = ap-south-1
我以前曾尝试设置并进行输入。 现在,当我运行
$ aws ec2 describe-instances
You must specify a region. You can also configure your region by running "aws configure".
当我运行aws configure
DEEL@DEEL-PC ~/.aws
$ aws configure
AWS Access Key ID [****************NLVA]:
AWS Secret Access Key [****************2YhC]:
Default region name [None]: ap-south-1
Default output format [None]: text
[Errno 2] No such file or directory: ''
我还检查了No such file or directory error when configuring aws on cygwin,但无法解决问题。
现在我做了
$ rm -rfv .aws/
removed '.aws/credentials'
removed directory '.aws/'
再次
DEEL@DEEL-PC ~ $ aws configure
AWS Access Key ID [None]: ****************VA
AWS Secret Access Key [None]: *************hC
Default region name [None]: ap-south-1
Default output format [None]: text
[Errno 2] No such file or directory: ''
但是我再次遇到相同的错误。 现在这是一个问题,我还要在这里检查awscli是否可以在cygwin中工作?
答案 0 :(得分:0)