python_altinstall
This is an old revision of the document!
source http://sowingseasons.com/blog/building-python-2-7-10-on-raspberry-pi-2.html
Using Alt install
Prerequisites
1 |
yum groupinstall "Development tools" |
1 |
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://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/
Now the dependancies have been installed we can go ahead and get the python tar:
1 |
wget https: //www .python.org /ftp/python/2 .7.10 /Python-2 .7.10.tgz |
1 |
tar -zxvf Python-2.7.10.tgz |
1 |
cd Python-2.7.10 |
1 |
. /configure --prefix= /usr/local -- enable -unicode=ucs4 -- enable -shared LDFLAGS= "-Wl,-rpath /usr/local/lib" |
1 |
make && make altinstall |
Download and install Setuptools + pip
1 |
wget https: //bitbucket .org /pypa/setuptools/raw/bootstrap/ez_setup .py |
1 |
python2.7 ez_setup.py |
1 |
easy_install-2.7 pip |
1 |
/usr/local/bin/python2 .7 |
Understanding Python locations
I would recommend reading the following article to understand more https://github.com/h2oai/h2o-2/wiki/Installing-python-2.7-on-centos-6.3.-Follow-this-sequence-exactly-for-centos-machine-only
python_altinstall.1444289762.txt.gz · Last modified: 2024/05/23 07:26 (external edit)