My system has anaconda3 installed which I think is the source of the problem
Code: Select all
where python
Code: Select all
/anaconda3/bin/python
/usr/local/bin/python
/usr/bin/python
Even when I make my project from the Terminal I have to change Python2 Interpreter under SDK tool Configuration to python2 from python, otherwise it throws all sorts of error, but after changing to python2 it compiles and executes just fine
Now in Eclipse, I have followed all the instructions from here http://esp-idf.readthedocs.io/en/v3.1-b ... setup.html. But when I use "python" under Python 2 Interpreter it throws this error "No module named serial.tools.list_ports", while when I use python2 it throws "python2: command not found". I have tried to modified my PYTHON_PATH in Eclipse to all the possibilities from "where python" and "where python2" but it does not work.
I have run both "pip install pyserial" and "pip2 install pyserial". But it just doesn't work. Any help would be appreciated as without building the Eclipse editor just looks horrible with all those red squiggly lines underneath the code.