Python libraries, PyPy and CPython - Raspberry Pi Forums
hi,
i'm trying pypy, python jit compiler, rather cpython, interpreter. pypy not finding non-standard libraries such smbus, , gpio & rpio part of 'import' in python code. interpreter does find these.
assumption pypy picking libraries providing python api's /usr/lib/python2.7/* - directory not include smbus, gpio or rpio libraries. interpreter has additional library path entries pointing directory these addition libraries live in.
based on speculation, if i've got right, need find equivalent path setting in pypy installation , add directories.
python interpreter detailed knowledge know whether speculation right, , if so, how set library path pypy include on cpython path (which haven't located).
thanks,
hove
i'm trying pypy, python jit compiler, rather cpython, interpreter. pypy not finding non-standard libraries such smbus, , gpio & rpio part of 'import' in python code. interpreter does find these.
assumption pypy picking libraries providing python api's /usr/lib/python2.7/* - directory not include smbus, gpio or rpio libraries. interpreter has additional library path entries pointing directory these addition libraries live in.
based on speculation, if i've got right, need find equivalent path setting in pypy installation , add directories.
python interpreter detailed knowledge know whether speculation right, , if so, how set library path pypy include on cpython path (which haven't located).
thanks,
hove
pypy , cpython aren't 100% compatible, pypy has few issues libraries use native code (such rpi.gpio , smbus etc), standard modules included python present in pypy because have been ported pypy.
raspberrypi
Comments
Post a Comment