Monday, January 11, 2016

Installing Python 3.4 wasn't enough, so it's back to Jessie

As I tried to get started on installing some packages for Python 3.4, I learned that there's a program called "pip" that I needed to install. So I did. Or at least, I thought I did. I ended up doing

sudo apt-get install python-pip
which installed pip, but for Python 2. So I had to do it a second time.
sudo apt-get install python3-pip
In all, I probably spent about an hour from the time I discovered I needed pip to the time I finished installing it. After installing it, I then tried to install the various packages as described in the Machine Learning book: NumPy, SciPy, scikit-learn, matplotlib, and pandas.

When I tried to install NumPy, it downloaded the files and just sat there for a full hour with nothing. So I cancelled out of it and tried to upgrade pip3 (there was a warning that suggested I do this). The suggested upgrade command didn't do anything useful. Things were running very slowly, so I rebooted the computer. There might have been some other background processes that were stuck in a loop. It still took a while for me to figure it out, but the upgrade command I needed wasn't the one the program told me, but rather
sudo pip3 install --upgrade pip
After getting pip3 to upgrade, I tried to install NumPy again. No luck. So I'm going to download Jessie and go from there. I don't have anything worth saving on the current system. I found some instructions for getting into the system using VNC, so I should be able to restore things to a similar condition. But since I don't have a microSD card reader at home, I'm going to have to install that at work.
Here's the link to the installation instructions: https://www.raspberrypi.org/forums/viewtopic.php?t=123457&p=830506

No comments:

Post a Comment