Bug 249026 - lang/python37: python: not found
Summary: lang/python37: python: not found
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-31 10:32 UTC by Aleks
Modified: 2020-09-01 03:32 UTC (History)
0 users

See Also:
koobs: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleks 2020-08-31 10:32:13 UTC
/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
Comment 1 Chris Hutchinson 2020-08-31 18:55:49 UTC
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
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2020-09-01 01:15:05 UTC
You also need to install the lang/python port to be able to use "python" as a command.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2020-09-01 03:32:03 UTC
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