Replies: 1 comment
-
Thanks for this guideline! It might need a slight update: Using QGIS 3.34.0 from conda-forge on an ARM64 Mac, the python executable is in fact next to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Occasionally, QGIS users may need to update the python packages for own purposes – locating the Python interpreter actually used by QGIS is a prerequisite.
Here we share a python snippet used in our code for this, which hopefully may provide a general workaround for all platforms.
launch QGIS and navigate to its python console;
save the the following code using the console's editor:
and press the "run" button (i.e., green triangle)
locate_py()
,which should give something like this (e.g. on macOS):
PosixPath('/Applications/QGIS.app/Contents/MacOS/bin/python3')
This is the actual path to python interpreter used by your QGIS.
Beta Was this translation helpful? Give feedback.
All reactions