Installing numpy RPM with older Python version -
i'm trying install numpy 1.7 via rpm on older linux machine python 2.4. numpy release notes , the rpm page supposed compatible 2.4 (or <= 2.7), when try install on machine command
rpm -i /tmp/python-numpy-1.7.0-2.1.i586.rpm i number of missing dependency notes, including:
libc.so.6(glibc_2.11) needed python-numpy-1.7.0-2.1.i586 libc.so.6(glibc_2.4) needed python-numpy-1.7.0-2.1.i586 liblapack.so.3 needed python-numpy-1.7.0-2.1.i586 libpython2.7.so.1.0 needed python-numpy-1.7.0-2.1.i586 python >= 2.7 needed python-numpy-1.7.0-2.1.i586 python = 2.7 needed python-numpy-1.7.0-2.1.i586 python(abi) = 2.7 needed python-numpy-1.7.0-2.1.i586 rpmlib(payloadislzma) <= 4.4.6-1 needed python-numpy-1.7.0-2.1.i586 so @ least python 2.7 needed, rather 2.7. real discrepancy or using rpm incorrectly? i'm used higher-level linux package managers report dependencies correctly , install them automatically, i'm unsure how proceed here.
are sure distribution not provide numpy already? looks numpy part of epel.
if reason unwilling use version in distribution, you're going have build rpm yourself. able build 1.7.1 on centos 5.7 so:
sudo yum install rpm-build gcc python-devel wget 'https://pypi.python.org/packages/source/n/numpy/numpy-1.7.1.tar.gz' tar -xf numpy-1.7.1.tar.gz cd numpy-1.7.1/ python setup.py bdist_rpm sudo yum localinstall dist/numpy-1.7.1-1.i386.rpm the generated rpm (in ./dist) should useable without rebuilding on of machines similar hardware , os.
Comments
Post a Comment