python_altinstall
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python_altinstall [2015/10/06 19:34] – luke7858 | python_altinstall [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====IGNORE GUIDE FOR NOW....==== | + | source | 
| - | READ THIS ARTICLE IF YOU WANT PYTHON 2.7.10: | + | source https:// | 
| - | + | ||
| - | http:// | + | |
| \\ | \\ | ||
| \\ | \\ | ||
| - | === Python 2.7.6 === | + | === Using Alt install | 
| - | Source: http:// | + | |
| + | ==Prerequisites === | ||
| <sxh bash> | <sxh bash> | ||
| yum groupinstall " | yum groupinstall " | ||
| Line 13: | Line 12: | ||
| yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel | yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel | ||
| </ | </ | ||
| + | \\ | ||
| + | |||
| + | === Python 2.10.5 === | ||
| + | Source: http:// | ||
| + | |||
| Now the dependancies have been installed we can go ahead and get the python tar: | Now the dependancies have been installed we can go ahead and get the python tar: | ||
| <sxh bash> | <sxh bash> | ||
| - | wget http:// | + | wget https://www.python.org/ | 
| </ | </ | ||
| <sxh bash> | <sxh bash> | ||
| - | tar xf Python-2.7.6.tar.xz | + | tar -zxvf Python-2.7.10.tgz | 
| </ | </ | ||
| <sxh bash> | <sxh bash> | ||
| - | cd Python-2.7.6 | + | cd Python-2.7.10 | 
| </ | </ | ||
| + | The following command will install the Python interpreter in / | ||
| <sxh bash> | <sxh bash> | ||
| ./configure --prefix=/ | ./configure --prefix=/ | ||
| Line 29: | Line 34: | ||
| make && make altinstall | make && make altinstall | ||
| </ | </ | ||
| + | \\ | ||
| == Download and install Setuptools + pip == | == Download and install Setuptools + pip == | ||
| <sxh bash> | <sxh bash> | ||
| Line 40: | Line 46: | ||
| easy_install-2.7 pip | easy_install-2.7 pip | ||
| </ | </ | ||
| - | Python 2.7 should now be located: | ||
| - | <sxh bash> | ||
| - | / | ||
| - | </ | ||
| - | |||
| - | === Understanding Python locations === | ||
| - | I would recommend reading the following article to understand more | ||
| - | https:// | ||
python_altinstall.1444160047.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
                
                