> ## Content Index
> Fetch the complete content index at: https://ostreff.info/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to build and use Python 3.14.x on FreeBSD as the default version
- URL: https://ostreff.info/how-to-use-python-3-14-x-on-freebsd/
- Published: 2025-10-23T11:46:37.000Z
- Updated: 2025-11-02T12:21:57.000Z
- Description: This is my experiment running on machine where the site is hosted.
- Author: Jordan Ostreff
- Tags: python, FreeBSD

First important thing is to add needed pieces in /etc/make.conf file

```bash
DEFAULT_VERSIONS+=python3=3.14
DEFAULT_VERSIONS+=python=3.14
```

The you must get working copy of feature python314 port from [here](https://bugs.freebsd.org/bugzilla/show%5Fbug.cgi?id=282176&ref=ostreff.info).

Here is my example to upgrade from Python 3.13.8 to 3.14.0:

```bash
# sh
# portmaster -o lang/python314 python313
# REINSTALL="$(pkg info -oq '*py313*')"
# pkg delete -f "*py313*"
# portmaster $REINSTALL
# REBUILD=$(pkg query -g "%n:%dn" '*' | grep py3 | grep -v py314 | cut -d : -f 1 | sort -u)
# portmaster $REBUILD
# REBUILD2=$(pkg list | grep python-313 | xargs pkg which | awk '{print $6}' | sort -u)
# portmaster $REBUILD2
```

There is visible difference in [performance](https://blog.miguelgrinberg.com/post/python-3-14-is-here-how-fast-is-it?ref=ostreff.info) after the upgrade.

- The official inclusion into main ports tree was from 1 november 2025.