/usr/ports/lang/python37] # make reinstall ===> Deinstalling for python37 ===> Deinstalling python37-3.7.8_1 Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: python37: 3.7.8_1 Number of packages to be removed: 1 The operation will free 111 MiB. [1/1] Deinstalling python37-3.7.8_1... [1/1] Deleting files for python37-3.7.8_1: 100% ===> Installing for python37-3.7.9 ===> Checking if python37 is already installed ===> Registering installation for python37-3.7.9 Installing python37-3.7.9... Note that some standard Python modules are provided as separate ports as they require additional dependencies. They are available as: py37-gdbm databases/py-gdbm@py37 py37-sqlite3 databases/py-sqlite3@py37 py37-tkinter x11-toolkits/py-tkinter@py37 ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/lib/python3.7/lib-dynload/_socket.so If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: https://www.python.org/ /usr/ports/lang/python37] # python --version python: not found FreeBSD 12.1-STABLE r364184 GENERIC amd64
Try: # which python3.7 which will return: /usr/local/bin/python3.7 This method facilitates the installation of multiple versions of Python. Most notably version 2.7. --Chris
You also need to install the lang/python port to be able to use "python" as a command.
The individual lang/pythonXY ports only install their respective fooX.Y scripts/binaries. The lang/python and lang/pythonX ports are for installing convenience symlinks, that will point to the correct place based on the users present DEFAULT_VERSION for python/python2/python3