Hello.
To learn AWS I wanted to put awscli on my Mac, so I used Python. A situation occurred in which an error occurred and it did not work.
python
-bash: /usr/local/bin/python: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory
I was playing around with it in the survey, so maybe I was playing with something strange. In the first place, there is no such file as /usr/local/opt/python/bin/python2.7.
I've tried many things, but I haven't touched UNIX at all. Uninstall python once and reinstall it. However, the situation has not changed.
If you check the installation log, you will notice that there is an error.
python
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
rm '/usr/local/bin/2to3'
To force the link and overwrite all conflicting files:
brew link --overwrite python
To list all files that would be deleted:
brew link --overwrite --dry-run python
It seems that the symbolic already existed and could not be updated.
python
brew link --overwrite python
I ran the above command and it worked!
python
$ python
Python 2.7.10 (default, Sep 23 2015, 04:34:14)
I still have a lot of lack of study, so I will study little by little. For the time being, I think I can start studying AWS.