Embedded Linux
  • Cover
  • Summary
  • About This Training
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon A Time ...
  • Embedded Linux
  • Build Systems
    • Yocto Board Support Package
      • Yocto
      • Compilation
        • Make
        • Bitbake
        • Script
      • Building Blocks
      • SDK
      • Extra Packages
      • Kernel
        • Patch
        • Building
        • Headers
      • Modules
        • Cross Compilation
        • Native
      • Filesystem
      • Flashing
    • Distributions
      • CentOS
      • Google Brillo
      • Jubilinux
      • Kali
      • Ostro
      • Ubilinux
      • Debian
  • Boot Loaders
    • U-Boot
  • Initialization
    • Upgrade
    • Boot Up
    • Dual Boot
    • Root Directory
    • Display Message
    • Modules
    • Filesystem
    • Memory
    • Backup
    • Recovery
    • Reboot
    • Processes
  • User Space
    • Virtual Network Computing
    • Text Editors
    • Services
    • Logs
    • Package Management Systems
      • Open Package Management
      • Python Package Index
      • Nicely Package Make
      • Advanced Packaging Tool
      • Manual
      • Conda
    • Libraries
      • Mraa
      • Upm
      • OpenCv
      • Temboo
      • Libiio
    • Frameworks
      • Cylon JS
      • Johnny Five
      • ROS
      • Gobot
      • Pixhawk
      • Artoo
      • Bower
      • Zetta
      • Miscellaneous
  • Subsystems
    • X File Systems
    • Pin Muxing
    • Virtual File System
    • Memory
    • Input
    • General Purpose Input Output
    • Serial
    • Bluetooth
      • Advanced Audio Distribution Profile
        • Bluez
        • Gstreamer
        • Alsa
      • Human Interface Device Game Controller
      • Serial Port Protocol
      • Arduino
    • WiFi
    • Audio
    • Camera
    • Block
    • Universal Serial Bus
      • Human Interface Device Mini Keyboard
      • Python USB
    • Inter Integrated Circuit
    • Inter Process Communication
    • Peripheral Component Interconnect
    • Clock
    • Modems
    • Networking
    • Power
    • Thermal
    • Graphics
    • LED
    • LIDAR
    • Printer
    • Serial Peripheral Interface
  • Application Development
    • C
    • C++
    • Cross Compile
    • Containers
    • Python
    • NodeJS
    • Cloud9
    • Data
    • Drone Code
    • Speech
      • Python
    • Radio Frequency
    • Bots
    • Artificial Intelligence
      • WitAi
      • MycroftAi
    • Games
    • Vision
      • Bar Codes
      • Google Cloud Vision API
    • Messaging
    • Entertainment
    • Home Assistants
    • Dashboards
    • IRC
    • Location
    • Facial Recognition
    • Software Defined Radio
    • REST
    • Notes
    • Security
    • HAM Radio
    • Automotive
    • Digital Signage
    • Photography
  • Debug
  • Wrap-Up
    • Online Training
    • Challenge
    • Tbd
  • SandBox
Powered by GitBook
On this page
  • Python Package Index
  • Python Library
  • Python Library Search
  • Python Library Optional Installation Path
  • Python Library Default Installation Path
  • Python Library Github Installation
  • Python Easy_Install
  1. User Space
  2. Package Management Systems

Python Package Index

PreviousOpen Package ManagementNextNicely Package Make

Last updated 7 years ago

Python Package Index

The Python Package Index or PyPI is the official third-party software repository for the Python programming language. Python developers intend it to be a comprehensive catalog of all open source Python packages. Wikipedia

The Python Package Index is a repository of software for the Python programming language. Official Homepage

    root@edison:~# opkg install python-pip python-dev
    root@edison:~# pip install setuptools

Python Library

    root@edison:~# python
    Python 2.7.3 (default, Dec 19 2015, 23:06:02)
    [GCC 4.9.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import psutil
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named psutil
    >>> <CTRL-D>

Python Library Search

    root@edison:~# pip search psutil
    ...
    psutil                    - psutil is a cross-platform library for retrieving
                                information onrunning processes and system
                                utilization (CPU, memory, disks, network)in
                                Python.
    ...

Python Library Optional Installation Path

    root@edison:~# pip install psutil --target /root
    Downloading/unpacking psutil
      Running setup.py egg_info for package psutil

        warning: no previously-included files matching '*' found under directory 'docs/_build'
        warning: manifest_maker: MANIFEST.in, line 18: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
        0
    Installing collected packages: psutil
      Running setup.py install for psutil

        warning: no previously-included files matching '*' found under directory 'docs/_build'
        warning: manifest_maker: MANIFEST.in, line 18: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

    Successfully installed psutil
    Cleaning up...
    root@edison:~# ls /root/
    psutil                       psutil-3.3.0-py2.7.egg-info
    root@edison:~# ls /root/psutil
    __init__.py       _compat.pyc       _psosx.py         _pssunos.pyc
    __init__.pyc      _psbsd.py         _psosx.pyc        _psutil_linux.so
    _common.py        _psbsd.pyc        _psposix.py       _psutil_posix.so
    _common.pyc       _pslinux.py       _psposix.pyc      _pswindows.py
    _compat.py        _pslinux.pyc      _pssunos.py       _pswindows.pyc

    root@edison:~# export PYTHONPATH=$PYTHONPATH:/root
    root@edison:~# echo "export PYTHONPATH=$PYTHONPATH:/root" >> /etc/profile
    root@edison:~# python
    Python 2.7.3 (default, Dec 19 2015, 23:06:02) 
    [GCC 4.9.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import psutil
    >>> <CTRL-D>
    root@edison:~# pip uninstall psutil

Python Library Default Installation Path

    root@edison:~# pip install psutil
    Downloading/unpacking psutil
      Running setup.py egg_info for package psutil

        warning: no previously-included files matching '*' found under directory 'docs/_build'
        warning: manifest_maker: MANIFEST.in, line 18: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

    Installing collected packages: psutil
      Running setup.py install for psutil

        warning: no previously-included files matching '*' found under directory 'docs/_build'
        warning: manifest_maker: MANIFEST.in, line 18: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

    Successfully installed psutil
    Cleaning up...

Python Library Github Installation

    root@edison:~# pip install https://github.com/mitsuhiko/flask/tarball/master

Python Easy_Install

root@edison:~# easy_install requests
Searching for requests
Reading https://pypi.python.org/simple/requests/
Best match: requests 2.10.0
Downloading https://pypi.python.org/packages/49/6f/183063f01aae1e025cf0130772b55848750a2f3a89bfa11b385b
35d7329d/requests-2.10.0.tar.gz#md5=a36f7a64600f1bfec4d55ae021d232ae
Processing requests-2.10.0.tar.gz
Writing /tmp/easy_install-E4KeMV/requests-2.10.0/setup.cfg
Running requests-2.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-E4KeMV/requests-2.10.0/egg-d
ist-tmp-qSTGq5
warning: no files found matching 'test_requests.py'
creating /usr/lib/python2.7/site-packages/requests-2.10.0-py2.7.egg
Extracting requests-2.10.0-py2.7.egg to /usr/lib/python2.7/site-packages
Adding requests 2.10.0 to easy-install.pth file

Installed /usr/lib/python2.7/site-packages/requests-2.10.0-py2.7.egg
Processing dependencies for requests
Finished processing dependencies for requests
root@edison:~#
Python Package Index Homepage
Python Package Index Wikipedia
Python Packaging User Guide