Post by Peter PetrikHi
Hi,
Python is already bundled in our package. The package is really
standalone, so you do not need to have anything else installed. The note
about Python is that, unfortunately, the python distribution we use ATM is
not compatible with MacOS 10.11 and 10.12. One way how to fix it is
probably use Python official distribution and not Homebrew distribution in
the process of creation of our package.
Ah ok cool thanks for the clarification. I can confirm that the package I
downloaded last night picks up the python interpreter inside the bundle
import sys
print(p)
/Users/timlinux/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins/karika
/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python
/Users/timlinux/Library/Application
Support/QGIS/QGIS3/profiles/default/python
/Users/timlinux/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python/plugins
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
/Applications/QGIS3.4.2.app/Contents/Resources/python
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages
What is the recommended way to install additional deps (e.g. via pip) into
the bundled python environment? If we try to just directly use the python
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/3.7/bin]$ ./python3.7
Python 2.7.10 (default, Aug 17 2018, 17:41:52)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
... print(p)
...
/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages
/Library/Python/2.7/site-packages/numpy-override
/Library/Python/2.7/site-packages/matplotlib-override
/Library/Frameworks/GDAL.framework/Versions/2.1/Python/2.7/site-packages
/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
/Library/Python/2.7/site-packages/pycharm-debug.egg
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/timlinux/Library/Python/2.7/lib/python/site-packages
/usr/local/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/pycharm-debug.egg
/usr/local/lib/python2.7/site-packages/geos
/usr/local/Cellar/numpy/1.15.3/libexec/nose/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/wx-3.0-osx_cocoa
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
KeyboardInterrupt
Maybe we need to bundle in pip and a tool from within QGIS to call pip
(some examples were given on this mailing list in the past) from within
QGIS so that the python interpreter has the correct contextâŠ.this would
probably be useful for windows users too?
Regards
Tim
â
*Tim Sutton*
*Co-founder:* Kartoza
*Ex Project chair:* QGIS.org
Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services
*Skype*: timlinux
*IRC:* timlinux on #qgis at freenode.net