라즈베리파이 판다스 설치 - lajeubelipai pandaseu seolchi

I'm trying to install Python Pandas on my Raspi and I'm finding strange errors.

~ $ pip install pandas
Downloading/unpacking pandas
Downloading pandas-0.13.1.tar.gz (6.1Mb): 6.1Mb downloaded
Running setup.py egg_info for package pandas

warning: no files found matching 'README.rst'
no previously-included directories found matching 'doc/build'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.png' found anywhere in distribution
....
pandas/src/klib/khash_python.h:13:1: warning: statement with no effect [-Wunused-value]
pandas/src/klib/khash_python.h: In function âkh_del_pymapâ:
pandas/src/klib/khash_python.h:38:1: warning: statement with no effect [-Wunused-value]
pandas/src/klib/khash_python.h: In function âkh_del_pysetâ:
pandas/src/klib/khash_python.h:44:1: warning: statement with no effect [-Wunused-value]
pandas/src/klib/khash_python.h: In function âkh_del_strboxâ:
pandas/src/klib/khash_python.h:49:1: warning: statement with no effect [-Wunused-value]

and then more errors warnings for a long time. It never actually fails, but doesn't complete either in over half an hour. What is going on here and how do I fix it?

Edited to add

I have tried the alternative route of sudo apt-get install python-pandas which does install pandas but it's only version 0.8 rather than 0.13. Trying to follow up with sudo pip install pandas --upgrade gives the same results as above.

I'd been searching for the same thing: a way to "install" the current version of pandas on a Raspberry Pi 3. Using apt-get to install it on the RPi pulls an outdated version of pandas from the Raspbian repository.

On GitHub. I found two solutions for installing the current version of pandas (and Python/packages in general) on the RPi 3: one solution involves building and installing pandas directly on the Raspberry Pi, and the other solution involves installing a current Raspberry Pi version of conda (called BerryConda) on the Raspberry Pi and then downloading the current version of pandas as an RPi package from the Anaconda Cloud.

Solution 1:

User kleinee on GitHub has created a script that will create a Jupyter notebook server on Raspberry Pi 2 and/or 3. Although, the intent of the script is to create a Jupyter notebook server, it can be modified easily to install only the current version of pandas on the RPi.

The script starts by downloading the most recent version of Python 3 (currently, 3.6.1), setting it up and installing it on the RPi. The script then goes on to download other parts of what he calls a "scientific stack," which includes the current version of pandas. He also provides another script that will check for updates to installed Python packages and automatically update them, as necessary.

You can run the entire script as is (to install current versions of Python, jupyter, pandas, numpy, scipy, matplotlib, etc.) or you can edit the script to install only the current version of pandas. I ran the script "as is" yesterday and it took about 4 hours to install Python and the included "stack" (to include pandas) on my RPi 3.

The advantage to this solution is that you are downloading the current version of Python and packages directly from the source, so you will always get the most recent version. The disadvantage is that you have to "build" them locally on the RPi, which will take time (4 hours, in my case, for about a dozen packages, including Python itself).

Solution 2:

User jjhelmus has created "BerryConda," a current RPi version of conda. He has also created Python packages (including the current version of pandas) that he makes available on the RPi channel at Anaconda Cloud. Using this solution, you can install the current version of pandas using BerryConda without having to compile it, like you do in solution 1.

The advantage to this solution is that you do not have to compile anything locally, so setup is much faster. A possible disadvantage is that BerryConda and the associated packages are built and maintained by someone not associated with Anaconda or Continuum Analytics who may or may not continue to do so in the future. Although, the BerryConda packages are currently up-to-date, there's no guarantee that will be the case going forward.

Christian63Posts: 2Joined: Sat Apr 03, 2021 7:47 am

Python-pandas in Debian

Hi,
Wondering if I am doing things right.
I have developed a python 3 program with pandas 1.2.3 version on my windows PC - where it works fine, and then tried to make it work on my RPi 4 8G. It does not work on the Rpi, the python3-pandas repository available for Rpi users makes use of pandas 0.23.3, which does not have some of the improvements and functionalities of version 1.2.3. I have tried to install pandas as a standalone, the process seems to stop after building the dependencies, and nothing happens anymore in the terminal window.
It looks like a limitation of the pandas version available for Debian users. Can anyone confirm this view, and possibly indicate a workaround for installing pandas 1.2.3 on the Rpi ?
Thanks.


라즈베리파이 판다스 설치 - lajeubelipai pandaseu seolchi

joelostinspacePosts: 142Joined: Sat Aug 10, 2019 2:51 pmLocation: Earth

Re: Python-pandas in Debian

Sat Apr 03, 2021 5:03 pm

To upgrade an already installed package to the latest from PyPI: >>pip install --upgrade PackageName.

try:


If a little knowledge is dangerous, where is the man who has so much as to be out of danger?


--- Thomas Huxley


Christian63Posts: 2Joined: Sat Apr 03, 2021 7:47 am

Re: Python-pandas in Debian

Sat Apr 03, 2021 7:27 pm

This is something I had already tried several times, but I tried it again once more.

This time I left it running after 10 minutes, even though the terminal seemed to be stuck on a message. When I returned after one hour, it showed that installation had been successful. I had just been too impatient, my bad...

Thanks.


Return to “Python”