I’ve pretty much followed https://learn.sparkfun.com/tutorials/qw … e#hardware to get Qwiic set up. I got the MicroSD card flashed, updated, and now to the point to install Qwiic; however, I get the following:
sudo pip install sparkfun_qwiic
sudo: pip: command not found
I’ve kept track of what I’ve done so far. Did I miss a step?
Download and extracted Raspbian Buster Lite
Write to 4GB MicroSD Card
Added ssh file to boot
Safe Eject
Installed MicroSD to Raspberry Pi Zero W and powered on
SSH using pi login
Create new login and added to visudo
Changed root password
Logout and login with new user
Deleted pi login
Expand file system via raspi-config
Reboot
Pickup from tutorial found at https://learn.sparkfun.com/tutorials/qwiic-kit-for-raspberry-pi-hookup-guide#hardware
Hardware connected to pHat and pHat connected to Raspberry Pi Zero W and Raspberry Pi Zero W powered on
sudo apt-get update
sudo apt-get dist-upgrade
reboot
sudo raspi-config
enable I2C
sudo nano /boot/config.txt
Added
# Enable I2C clock stretching
dtparam=i2c_arm_baudrate=10000
reboot
python --version
Python 2.7.16
pip --version
-bash: pip: command not found
sudo apt-get install python3-pip
nano ~/.bashrc
alias python='/usr/bin/python3'
alias pip=pip3
save, reboot
python -m pip install --upgrade pip
Successfully installed pip-19.2
sudo pip install sparkfun_qwiic
sudo: pip: command not found
python --version
Python 3.7.3
pip --version
pip 19.2 from /home/dolfin/.local/lib/python3.7/site-packages/pip (python 3.7)