pkg install using specific version of Python in FreeBSD?

5,799

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.

Share:
5,799

Related videos on Youtube

SDsolar
Author by

SDsolar

This photo of the igloo with the satellite dish reminds me of my roots - I am from Alaska. If you look closely you can see the noonday sun on Dec 21 at its highest point. And of course that igloo can only exist about 7 months of the year. Also if you look closely you will notice the dish is at an unnatural angle for the far north. From there, the TV satellites are right down on the southern horizon. And of course you have to wonder where the power is coming from to light the place and run the TV. The only thing missing from this photo is my favorite thing of all: The Northern Lights. That is the one thing I miss most about Alaska.

Updated on September 18, 2022

Comments

  • SDsolar
    SDsolar almost 2 years

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