Skip to content

Instantly share code, notes, and snippets.

@trevery
Created March 26, 2019 09:08
Show Gist options
  • Save trevery/365dd8a5e5735e6bc43c6d972dc12541 to your computer and use it in GitHub Desktop.
Save trevery/365dd8a5e5735e6bc43c6d972dc12541 to your computer and use it in GitHub Desktop.
fix problem when installing platformio on raspberry pi
#!/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