Created
          March 26, 2019 09:08 
        
      - 
      
- 
        Save trevery/365dd8a5e5735e6bc43c6d972dc12541 to your computer and use it in GitHub Desktop. 
    fix problem when installing platformio on raspberry pi 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| ## install python if it isn't already installed, e.g. ## | |
| #sudo apt-get install python | |
| # remove problematic dist versions of pip and pyserial | |
| sudo apt-get remove python-pip -y | |
| sudo apt-get remove python-pyserial -y | |
| # optional - python-serial includes other dependencies that can be cleaned up | |
| sudo apt-get autoremove | |
| # install pip | |
| sudo easy_install pip | |
| ## alternate method | |
| #sudo python get-pip.py | |
| # force reinstall of setuptools and pyserial using python/pip tools | |
| sudo pip install setuptools --force-reinstall -I | |
| sudo pip install pyserial --force-reinstall -I | |
| # install/update platformio | |
| sudo pip install platformio -U | |
| platformio update | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment