Я на Mac OS 10.13.2 High Sierra и пытаюсь установить aws cli, следуя следующим инструкциям: aws cli Инструкции
после установки, когда я пытаюсь проверить его с помощью aws --version
, Я получаю сообщение об ошибке:
-bash: /usr/local/bin/aws: /usr/local/aws/bin/python: bad interpreter: Too many levels of symbolic links
, поэтому я cd
до /usr/local/bin/
и gedit aws
и вижу это:
#!/usr/local/aws/bin/python
# Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
# http://aws.amazon.com/apache2.0/
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
import sys
import os
if os.environ.get('LC_CTYPE', '') == 'UTF-8':
os.environ['LC_CTYPE'] = 'en_US.UTF-8'
import awscli.clidriver
def main():
return awscli.clidriver.main()
if __name__ == '__main__':
sys.exit(main())
Тогда япопробуйте gedit /usr/local/aws/bin/python
и получите ошибку на gedit
, сказав:
![screenshot error](https://i.stack.imgur.com/GBYVp.png)
Я новичок в Mac, Unix и AWS, поэтому, хотя я просматривал другиеответы, их сложно применить к моей ситуации.Пожалуйста, посоветуйте, что мне нужно удалить, так как я предполагаю, что есть круговая ссылка или слишком много символических ссылок, но просто не знаю, с чего начать копать.