Creating SymLink to Python3 Library

shellscript
python

#1

Just a quick tip for anyone having difficulties with KM not finding Python3...

sudo ln -s /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 /opt/local/bin/python3

This creates a symbolic link to the Python3 executable and places it in the /opt/local/bin folder, thus avoiding the need to alter the existing scripts. The same principle can be applied to any other combination of folders.


Python Example Code?
#2

Note, of course, that as Python3 is not part of the standard OS installation, and can be installed in various ways, and to various locations, you need to know where the executable really is.


#3

Hence the quoted comment.


#4

and quickly resolved in Terminal.app etc with

which python3

34


#5

I always preferred

type -a

or short:

type

Basically it’s the same as which but you have some neat options.

The neat options:

type -a shows all
type -p shows the command that would get executed
type -t shows the type