Python Forum

Full Version: Pandas + PIL on Linux (Python 32)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greetings,

The environment is Linux, Python 2.7 32-bit

I have to load a number of Python 2.7, 32 bit library files (.whl/.egg) on Linux.
I tried several files for Pandas, and Pillow, none would load.
pandas-0.20.2-cp27-cp27m-manylinux1_i686.whl
pandas-0.24.2-cp35-cp35-manylinux1_i686.whl

Any suggestions, which egg or whl to use, I would really appreciate it!

Thanks,
Clive
Update
(Mar-18-2022, 11:11 AM)Clives Wrote: [ -> ]The environment is Linux, Python 2.7 32-bit
Why are still doing stuff with Python 2.7,January 1, 2020 was the end of it's lifeđź’€

Quote:Any suggestions, which egg or whl to use, I would really appreciate it
If still want do it here are links
So can do quick test as i use pyenv and go back easy to any version.
tom@tom-VirtualBox:~$ pyenv global 2.7.18
tom@tom-VirtualBox:~/Downloads$ python --version
Python 2.7.18
So now i have python 2.7 and platform is Mint 64-bit
Then can as example i can use this wheel pandas-0.20.2-cp27-cp27mu-manylinux1_x86_64.whl see that i need to use cp27mu and not cp27m.
# Install
tom@tom-VirtualBox:~/Downloads$ pip install pandas-0.20.2-cp27-cp27mu-manylinux1_x86_64.whl
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing ./pandas-0.20.2-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pytz>=2011k (from pandas==0.20.2)
  Using cached https://files.pythonhosted.org/packages/d3/e3/d9f046b5d1c94a3aeab15f1f867aa414f8ee9d196fae6865f1d6a0ee1a0b/pytz-2021.3-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.7.0 in /home/tom/.local/lib/python2.7/site-packages (from pandas==0.20.2) (1.15.2)
Collecting python-dateutil (from pandas==0.20.2)
  Using cached https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil->pandas==0.20.2)
  Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Installing collected packages: pytz, six, python-dateutil, pandas
Successfully installed pandas-0.20.2 python-dateutil-2.8.2 pytz-2021.3 six-1.16.0

# Test that it works
tom@tom-VirtualBox:~/Downloads$ python
Python 2.7.18 (default, Mar 18 2022, 14:15:22) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>> 
>>> pandas.__version__
u'0.20.2'
>>> exit()
Hi Snipsat,
Thanks for your comments much appreciated.
I have tried a number of Pandas, the site is running Python 2.7, with no internet access.
The application will fall over if I use Python 3....

I tried installing the following, with no success, the whl is not supported on this platform!!
pandas-0.19.0
https://pypi.tuna.tsinghua.edu.cn/packag...e796cf54c7

pandas-0.20.2
https://pypi.tuna.tsinghua.edu.cn/packag...644fdb7bd5

pandas-0.23.0
https://pypi.tuna.tsinghua.edu.cn/packag...ebae2a07d3

pandas-0.23.2
https://pypi.tuna.tsinghua.edu.cn/packag...275108ae02

pandas-0.23.4
https://pypi.tuna.tsinghua.edu.cn/packag...c4af44c1ba

pandas-0.24.0
https://pypi.tuna.tsinghua.edu.cn/packag...442c9dc16c

pandas-0.24.1
https://pypi.tuna.tsinghua.edu.cn/packag...81cb62c719

pandas-0.24.2
https://pypi.tuna.tsinghua.edu.cn/packag...04a5f93248
Quote:I tried installing the following, with no success, the whl is not supported on this platform!!
You most check pip version and OS platform.
Example for me.
tom@tom-VirtualBox:~$ pip --version
pip 19.2.3 from /home/tom/.pyenv/versions/2.7.18/lib/python2.7/site-packages/pip (python 2.7)
tom@tom-VirtualBox:~$ 
tom@tom-VirtualBox:~$ hostnamectl
   Static hostname: tom-VirtualBox
         Icon name: computer-vm
           Chassis: vm
        Machine ID: ef635a010d284bc38d762d2b9f0e65ac
           Boot ID: 09b7a30a6e2a47c58e2bf8b0244e16b8
    Virtualization: oracle
  Operating System: Linux Mint 19
            Kernel: Linux 4.15.0-32-generic
      Architecture: x86-64
So pip most of course point to Python 2.7(because that is what you say is installed).
As you see i have Architecture: x86-64,if you have 32-bit it will say Architecture: x86-32
So my version that work is,for you it can will different based on command showed.
pip install pandas-0.20.2-cp27-cp27mu-manylinux1_x86_64.whl