How do you 'pkg install' a package using specific version of Python in FreeBSD 11? say I want to 'pkg install' using Python 3?
Pkg install using specific version of Python in FreeBSD
bsdfreebsdpython3
bsdfreebsdpython3
How do you 'pkg install' a package using specific version of Python in FreeBSD 11? say I want to 'pkg install' using Python 3?
Best Answer
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
orlang/python
The default version of Python3 is called
python3
orlang/python3
For a specific version of Python (for example 3.6) use
python36
orlang/python36
.Use
pkg search python
to see all of the names, andpkg search -o python
to see the same results but with origins instead.