Internet Of Things 101 Intel® Edison
  • Cover
  • Summary
  • About This Traning
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon A Time ...
  • Internet Of Things
    • Examples
    • Consortiums
    • Resources
      • Architecture
      • Associations
      • Awards
      • Contests
      • Events
      • Investors
      • Job Roles
      • People
      • Programming Languages
      • Projects
      • Standards
      • Tendencies
      • Training
        • Coursera
      • Licensing
      • Sites
    • Key Players
      • Amazon
      • Apple
      • ARM
      • AT&T
      • Atari
      • Axeda
      • Bosch
      • Cisco
      • Dell
      • Eclipse
      • Facebook
      • General Electric
      • Google
      • Hewlett Packard
      • Huawei
      • IBM
      • Intel
        • Tools
      • IoT Ticket
      • Libelium
      • Oracle
      • Others
      • Mediatek
      • Micrium
      • Microchip
      • Microsoft
      • Mozilla
      • NXP
      • NVIDIA
      • Nokia
      • Predixion
      • PTC
      • Qualcomm
      • RedHat
      • Renesas
      • Salesforce
      • Samsung
      • SAP
      • Schneider Electric
      • Telefonica
      • Texas Instruments
      • ThingWorx
      • Verizon
      • Vodafone
      • C2M
  • Architecture
    • Thing
      • Boards
        • Arduino
        • Beagleboard
        • C.H.I.P.
        • Raspberry Pi
        • ESP8266
        • Intel Architecture
          • Development Workstation
      • Boot Loaders
        • Labs
      • Operating Systems
      • Embedded Linux
        • Board Support Package
          • Labs
        • Boot Up
          • Labs
        • Command Line Interface
          • Labs
        • File Systems
          • Labs
        • Text Editors
          • Labs
        • Package Management System
          • Labs
        • Version Control Systems
          • Labs
        • Programming Languages
          • Python
          • PiP Package Management System
          • Labs
        • Libraries
          • Labs
      • Integrated Development Environments
    • Data
      • Sensors
        • Labs
        • Project
      • Actuators
        • Labs
        • Project
      • Local Operations
      • Frameworks
    • Gateways
      • Intel® IoT Gateways
    • Communications
      • Connectivity
        • Labs
      • Protocols
        • RESTful
          • Labs
        • MQTT
          • Labs
          • Project
    • Cloud Computing
      • Application Programming Interface
        • Labs
        • Project
      • Services
        • Labs
      • Platforms
        • Labs
  • Wrap-Up
    • Online Training
    • Challenge
  • SandBox
    • Sandbox-NonIT
    • IoTPy
    • Analytics
    • Security
    • Cloud
Powered by GitBook
On this page
  • Setup @ Edison
  • Setup @ Galileo
  1. Architecture
  2. Thing
  3. Embedded Linux
  4. Programming Languages

PiP Package Management System

PreviousPythonNextLabs

Last updated 7 years ago

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).

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
Python Pip Homepage