Python import additional modules

asked 2020-01-21 12:34:12 +0300

sasharp gravatar image

updated 2020-01-21 12:42:51 +0300

How to import additional modules on MacOS? Globally installed modules with

pip install module_name

won't be found. Copying them to

SailfishOS/bin/python/lib/python2.7

also doesn't work. A dirty workaround I have is copy them to

qml/pages

in the project.

edit retag flag offensive close delete

Comments

Regarding issues generated by sauvage "pip install" commands on CentOS, I recommend tu use sailfish packet manager for python module if they're available in the repository :)

TNZ ( 2020-01-21 15:27:43 +0300 )edit