I have both python 2.7 and 3.7 installed on my mac. When I updated esptool I saw this warning
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
I also noticed that when I installed esptool roughly 2 years ago I installed esptool for both versions.
I don’t feel comfortable to delete 2.7 yet, because I could run in new issues.
When I use a command like:
esptool.py --port /dev/cu.SLAB_USBtoUART erase_flash
it uses python 2.7
Also which pip
returns
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip
and which pip3
returns
/Library/Frameworks/Python.framework/Versions/3.7/bin/pip3
Is there a way to keep 2.7 for now and use 3.7 with the esptool command? Maybe something like setting 3.7 as standard?