How can I import modules to Python in Processing? -
i testing processing python implementation, can't seem find way import modules it.
for example trying import ib module , get:
importerror: no module named ib even though when go python in terminal , import it, works fine.
also when try import other modules processing following
from threading import rlock it works fine.
any idea why processing might reading of modules , not?
any tip appreciated.
it sounds processing uses own python interpreter. should able use sys.executable find path of current python interpreter, within processing repl, do:
import sys print(sys.executable) if doesn't output location of system python (on windows: c:\pythonxy xy python version) know that's problem. python interpreter can't find modules weren't installed its folder!
a possible solution in case install global modules separate directory , point pythonpath env var @ directory. careful this, though, if have both python3 , python2 on system.
Comments
Post a Comment