Azure-Samples / ESP-Samples

Samples for ESP boards using Azure IoT
MIT License
47 stars 23 forks source link

Needs pip for python2 before running the scripts #12

Closed HerraHak closed 11 months ago

HerraHak commented 3 years ago

Hi,

On my WSL I launched the install script for 8266 but it failed when calling the /usr/bin/python -m pip ... command as I didn't have pip for Python2 installed.

I tried to install it but apparently, pip for python2 isn't available anymore in the ubuntu repository.

This is what helped me overcome the issue : https://askubuntu.com/questions/1025189/pip-is-not-working-importerror-no-module-named-pip-internal.

Do you think we can add in the script to verify the presence of pip and then install it if absent?

ericmitt commented 3 years ago

Yes, make sense, please do a PR :-)