I’m playing a little bit with python today
and as every average user I obviously know what “pip” is. After an user request on our support forum I have introduced pip because it’s a must if you are using this wonderful language.
Yesterday I have received an email with a possible error related to pip, after a quick test it seems it’s not a problem related to the package but it’s just a missing python package. Let’s suppose you have just installed python pip
~# moebius package install python-pip Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: python-pip 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 263 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 https://raw.githubusercontent.com/andreabenini/moebius/master/ 250gto/main python-pip armel 1.3.1-r0 [263 kB] Fetched 263 kB in 3s (70.3 kB/s) Selecting previously unselected package python-pip. (Reading database ... 11226 files and directories currently installed.) Preparing to unpack .../python-pip_1.3.1-r0_armel.deb ... Unpacking python-pip (1.3.1-r0) ... Setting up python-pip (1.3.1-r0) ...
But after running it for the first time this is what you see:
pip install gopigo Traceback (most recent call last): File "/usr/bin/pip", line 5, in from pkg_resources import load_entry_point
This problem is not related to the pip package because you need to have setuptools installed in your machine. You can do it manually
~# wget [setuptools.remote.website.tar.gz.archive.path] ~# tar zxf setuptools-12.2.tar.gz ~# python setuptools-12.2/ez_setup.py
or you can install them easily with a package created for it
~# moebius package install python-distribute Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: python-distribute 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 340 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 https://raw.githubusercontent.com/andreabenini/moebius/master/ 250gto/main python-distribute armel 0.6.32-ml5 [340 kB] Fetched 340 kB in 4s (72.1 kB/s) Selecting previously unselected package python-distribute. (Reading database ... 11309 files and directories currently installed.) Preparing to unpack .../python-distribute_0.6.32-ml5_armel.deb ... Unpacking python-distribute (0.6.32-ml5) ... Setting up python-distribute (0.6.32-ml5) ...
Now you’re ready to do whatever you want with pip so:
# pip install gopigo Downloading/unpacking gopigo Downloading gopigo-1.3.tar.gz Running setup.py egg_info for package gopigo Installing collected packages: gopigo Running setup.py install for gopigo Successfully installed gopigo Cleaning up...
now works !
Have fun 🙂
PS: “gopigo“: (python pip lib)
This is the python library for GoPiGo, which is is a delightful and complete robot for the Raspberry Pi that turns your Pi into a fully operating robot