Last active
January 9, 2019 20:59
-
-
Save peterorum/3ca4cba5fbe6619c0e96 to your computer and use it in GitHub Desktop.
Install python3 on EC2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz | |
| tar zxvf Python-3.4.2.tgz | |
| cd Python-3.4.2 | |
| sudo yum install gcc | |
| ./configure --prefix=/opt/python3 | |
| make | |
| sudo make install | |
| sudo ln -s /opt/python3/bin/python3 /usr/bin/python3 | |
| sudo ln -s /opt/python3/bin/easy_install-3.4 /usr/bin/easy_install3 | |
| sudo ln -s /opt/python3/bin/pip3 /usr/bin/pip3.4 | |
| sudo ln -s /opt/python3/bin/pydoc3 /usr/bin/pydoc3 | |
| sudo ln -s /opt/python3/bin/pyenv /usr/bin/pyenv3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment