PiP Package Management System

pip is a package management system used to install and manage software packages written in Python. Many packages can be found in the Python Package Index (PyPI).

Python Pip Homepage

Setup @ Edison

Install pip and libraries

root@edison:~# opkg install python-pip
root@edison:~# pip install setuptools twython markdown Flask-API
root@edison:~# pip install paho-mqtt
root@edison:~# pip install plotly
root@edison:~# pip install psutil
Downloading/unpacking pywapi
Could not find any downloads that satisfy the requirement pywapi
No distributions at all found for pywapi
Storing complete log in /home/root/.pip/pip.log

Manual installation of Pywapi

root@edison:~# wget https://launchpad.net/python-weather-api/trunk/0.3.8/+download/pywapi-0.3.8.tar.gz
--2016-03-19 18:51:24--  https://launchpad.net/python-weather-api/trunk/0.3.8/+download/pywapi-0.3.8.tar.gz
Resolving launchpad.net... 91.189.89.223, 91.189.89.222
Connecting to launchpad.net|91.189.89.223|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://launchpadlibrarian.net/166317636/pywapi-0.3.8.tar.gz [following]
--2016-03-19 18:51:26--  https://launchpadlibrarian.net/166317636/pywapi-0.3.8.tar.gz
Resolving launchpadlibrarian.net... 91.189.89.228, 91.189.89.229
Connecting to launchpadlibrarian.net|91.189.89.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25166 (25K) [application/x-tar]
Saving to: 'pywapi-0.3.8.tar.gz.1'

100%[======================================>] 25,166       139KB/s   in 0.2s   

2016-03-19 18:51:27 (139 KB/s) - 'pywapi-0.3.8.tar.gz.1' saved [25166/25166]
root@edison:~# tar zxvf pywapi-0.3.8.tar.gz
pywapi-0.3.8/examples/pywapi-countries-example.py
pywapi-0.3.8/setup.py
pywapi-0.3.8/MANIFEST
pywapi-0.3.8/examples/
pywapi-0.3.8/examples/pywapi-noaa-example.py
pywapi-0.3.8/examples/pywapi-example.py
pywapi-0.3.8/pywapi.pyc
pywapi-0.3.8/LICENSE
pywapi-0.3.8/examples/pywapi-weather-com-example.py
pywapi-0.3.8/pywapi.py
pywapi-0.3.8/examples/pywapi-cities-example.py
pywapi-0.3.8/CHANGELOG
pywapi-0.3.8/README
pywapi-0.3.8/
pywapi-0.3.8/examples/pywapi-yahoo-example.py
pywapi-0.3.8/examples/get-weather.py
root@edison:~# cd pywapi-0.3.8
root@edison:~/pywapi-0.3.8# ls
CHANGELOG   MANIFEST    examples    pywapi.pyc
LICENSE     README      pywapi.py   setup.py
root@edison:~/pywapi-0.3.8# python setup.py build
running build
running build_py
creating build
creating build/lib
copying pywapi.py -> build/lib
root@edison:~/pywapi-0.3.8# python setup.py install
running install
running build
running build_py
running install_lib
copying build/lib/pywapi.py -> /usr/lib/python2.7/site-packages
byte-compiling /usr/lib/python2.7/site-packages/pywapi.py to pywapi.pyc
running install_egg_info
Writing /usr/lib/python2.7/site-packages/pywapi-0.3.8-py2.7.egg-info
root@edison:~/pywapi-0.3.8# cd
root@edison:~#

Setup @ Galileo

Install Pip Method 1

    root@galileo:~# curl -O https://bootstrap.pypa.io/get-pip.py
    root@galileo:~# python get-pip.py

Install Pip Method 2

    root@galileo:~# curl https://bootstrap.pypa.io/ez_setup.py -o - | python
    root@galileo:~# easy_install pip

Install Pip Libraries

    root@galileo:~# pip install --upgrade setuptools
    root@galileo:~# pip install --upgrade distribute
    root@galileo:~# curl https://bootstrap.pypa.io/ez_setup.py -o - | python
    root@galileo:~# pip install psutil paho-mqtt Flask-API
    root@galileo:~# pip install plotly

These packages are not working on latest image

    root@galileo:~# pip install twython markdown pywapi

Last updated