python file does not work on omega 2+
-
Hello , i am new to omega . i found this code that i wanted to try ;
https://github.com/ControlEverythingCommunity/MCP23017_16-Channel
i installed python3 lite
i installed nano and made a folder under root
i run this command to install the i2c package
opkg install python-light pyOnionI2Cso far all good , but when i try my file i get this error:
I run this : root@Omega-B947:~/python# python test_i2c.py
and got this:Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
root@Omega-B947:~/python# ^Cplease help
-
solved , just run python3 instead of python
-
Well that was easy