Switch python to 2.7 with alternatives

I noticed that the aws command was stuck and for some reason python was back to 2.6.

Such an error

Traceback (most recent call last):
  File "/usr/local/bin/aws", line 19, in <module>
    import awscli.clidriver
ImportError: No module named awscli.clidriver
$ alternatives --display python
python -The status is manual.
Link is now/usr/bin/python2.Pointing to 6.
/usr/bin/python2.6 -Priority item 2600
 :
 :
/usr/bin/python2.7 -Priority item 27000

Specify 2.7.

$ sudo alternatives --set python /usr/bin/python2.7

$ python -V
Python 2.7.9

returned.

Recommended Posts

Switch python to 2.7 with alternatives
Connect to BigQuery with Python
Connect to Wikipedia with Python
Post to slack with Python 3
Switch from python2.7 to python3.6 (centos7)
Write to csv with Python
How to switch to smartphone mode with Python + Selenium + Chrome
Python: How to use async with
Link to get started with python
[Python] Write to csv file with Python
Create folders from '01' to '12' with python
Try to operate Facebook with Python
Output to csv file with Python
Convert list to DataFrame with python
MP3 to WAV conversion with Python
To do tail recursion with Python2
How to get started with Python
What to do with PYTHON release?
Unable to install Python with pyenv
How to use FTP with Python
How to calculate date with python
Python to switch from another language
Easily post to twitter with Python 3
I want to debug with Python
FizzBuzz with Python3
Updated to Python 2.7.9
Try to reproduce color film with Python
Scraping with Python
Try logging in to qiita with Python
Change Python 64bit environment to 32bit environment with Anaconda
English speech recognition with python [speech to text]
HTML email with image to send with python
Memo to ask for KPI with python
Python to remember only with hello, worlds
Scraping with Python
Output color characters to pretty with python
Python with Go
Introduction to Python Image Inflating Image inflating with ImageDataGenerator
Output Python log to console with GAE
Twilio with Python
Convert Excel data to JSON with python
Convert Hiragana to Romaji with Python (Beta)
Fractal to make and play with Python
Integrate with Python
I wanted to solve ABC160 with Python
Switch Python versions
Connect to MySQL with Python within Docker
Play with 2016-Python
AES256 with python
Single pixel camera to experience with Python
Tested with Python
[Python] Introduction to CNN with Pytorch MNIST
Convert FX 1-minute data to 5-minute data with Python
I want to analyze logs with Python
How to do portmanteau test with python
python starts with ()
I want to play with aws with python
How to display python Japanese with lolipop
Trying to handle SQLite3 with Python [Note]
with syntax (Python)
How to switch python versions in cloud9