I have tried pip install, but can't make it point to python 3.5.2 even uninstalling version 3.4. I have also tried
sudo apt-get install python3-pandas
with no luck...
I am quite desperate. Is there no way to do this? I have searched for multiple solutions in this site and still nothing.
Does anyone know how to do it?
Thanks
Installing with ActivePythonVersions 2.7, 3.5 and 3.6 include pandas.
To install pandas for Python 2, you may need to use the python-pandas package. However, the packages in the linux package managers are often a few versions behind, so to get the newest version of pandas, it's recommended to install using the pip or conda methods described above.
To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion . For example, if you want to install an older version of Pandas you can do as follows: pip install pandas==1.1. 3 .
Before you install Pandas, you must bear in mind that it supports only Python versions 3.7, 3.8, and 3.9. Therefore, if you have not installed Python on your computer or have an older version of Python installed, you must install a version that supports Pandas on your computer.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With