Raspberry Pi Tips

Setup pyupdi by pip to to Raspberry Pi

Raspberry Pi 3 Model B V1.2

  $ cat /etc/debian_version
  9.11

1: check pyenv versions

  $ pwd
  /home/pi/Arduino/build/

  $ pyenv versions
  system
  * 3.7.0 (set by /home/pi/Arduino/build/.python-version)

About pyenv, please see Tips for setup pyenv

if you are not in 3.x.x environment,

  $ pyenv local 3.7.0

2: check python version

  $ python --version
  Python 2.7.13
  $ python3 --version
  Python 3.7.0

3: Upgrade pip (if necessary)

$ pip3 install --upgrade pip ~ Installing collected packages: pip Found existing installation: pip 10.0.1 Uninstalling pip-10.0.1: Successfully uninstalled pip-10.0.1 Successfully installed pip-20.0.2 You are using pip version 20.0.2, however version 20.1b1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

4: Install required library packages

  $ pip3 install intelhex pylint pyserial

5: Check managed library

  $ pip list
  Package           Version
  ----------------- -------
  astroid           2.3.3  
  intelhex          2.2.1  
  isort             4.3.21 
  lazy-object-proxy 1.4.3  
  mccabe            0.6.1  
  pip               20.0.2 
  pylint            2.4.4  
  pyserial          3.4    
  setuptools        39.0.1 
  six               1.14.0 
  typed-ast         1.4.1  
  wrapt             1.11.2 

  $ pip3 list
  Package           Version
  ----------------- -------
  astroid           2.3.3  
  intelhex          2.2.1  
  isort             4.3.21 
  lazy-object-proxy 1.4.3  
  mccabe            0.6.1  
  pip               20.0.2 
  pylint            2.4.4  
  pyserial          3.4    
  setuptools        39.0.1 
  six               1.14.0 
  typed-ast         1.4.1  
  wrapt             1.11.2 

6: Install pyupdi from github

  $ pip3 install https://github.com/mraardvark/pyupdi/archive/master.zip
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  Collecting https://github.com/mraardvark/pyupdi/archive/master.zip
    Downloading https://github.com/mraardvark/pyupdi/archive/master.zip
        - 20 kB 1.1 MB/s
  ~
  Installing collected packages: pyupdi
  Running setup.py install for pyupdi ... done
  Successfully installed pyupdi-0.0.0

  $ pip3 list
  Package           Version
  ----------------- -------
  astroid           2.3.3  
  intelhex          2.2.1  
  isort             4.3.21 
  lazy-object-proxy 1.4.3  
  mccabe            0.6.1  
  pip               20.0.2 
  pylint            2.4.4  
  pyserial          3.4    
  pyupdi            0.0.0  
  setuptools        39.0.1 
  six               1.14.0 
  typed-ast         1.4.1  
  wrapt             1.11.2 


Refs: