How do you 'pkg install' a package using specific version of Python in FreeBSD 11? say I want to 'pkg install' using Python 3?


There are several versions of Python in the FreeBSD package system. There are two ways to specify a package, by name or by origin (the latter uses category/port notation).

The default version of Python is always called python or lang/python

The default version of Python3 is called python3 or lang/python3

For a specific version of Python (for example 3.6) use python36 or lang/python36.

Use pkg search python to see all of the names, and pkg search -o python to see the same results but with origins instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.