OS Manuals

/usr/bin/nltk

Executable binaries for nltk installed for python3.13

From py3.13-nltk-bin 3.10.4-r0 (os), captured 2026-11-05 by running nltk --help (exit 1) · terse output. permalink

/usr/lib/python3.13/site-packages/nltk/metrics/association.py:26: UserWarning: A NumPy version >=2.0.0 and <2.8.0 is required for this version of SciPy (detected version 1.26.5)
  from scipy.stats import fisher_exact
/usr/lib/python3.13/site-packages/scipy/sparse/_sputils.py:17: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.
  np.uintc, np.long, np.ulong, np.longlong, np.ulonglong,
/usr/lib/python3.13/site-packages/scipy/sparse/_sputils.py:17: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.
  np.uintc, np.long, np.ulong, np.longlong, np.ulonglong,
Traceback (most recent call last):
  File "/usr/bin/nltk", line 3, in <module>
    from nltk.cli import cli
  File "/usr/lib/python3.13/site-packages/nltk/__init__.py", line 145, in <module>
    from nltk.collocations import *
  File "/usr/lib/python3.13/site-packages/nltk/collocations.py", line 36, in <module>
    from nltk.metrics import (
    ...<4 lines>...
    )
  File "/usr/lib/python3.13/site-packages/nltk/metrics/__init__.py", line 18, in <module>
    from nltk.metrics.association import (
    ...<5 lines>...
    )
  File "/usr/lib/python3.13/site-packages/nltk/metrics/association.py", line 26, in <module>
    from scipy.stats import fisher_exact
  File "/usr/lib/python3.13/site-packages/scipy/stats/__init__.py", line 600, in <module>
    from ._stats_py import *
  File "/usr/lib/python3.13/site-packages/scipy/stats/_stats_py.py", line 39, in <module>
    from scipy import sparse
  File "/usr/lib/python3.13/site-packages/scipy/sparse/__init__.py", line 250, in <module>
    from ._base import *
  File "/usr/lib/python3.13/site-packages/scipy/sparse/_base.py", line 8, in <module>
    from ._sputils import (asmatrix, check_shape,
                           get_sum_dtype, isdense, isscalarlike, _todata,
                           matrix, validateaxis, getdtype, is_pydata_spmatrix)
  File "/usr/lib/python3.13/site-packages/scipy/sparse/_sputils.py", line 17, in <module>
    np.uintc, np.long, np.ulong, np.longlong, np.ulonglong,
              ^^^^^^^
  File "/usr/lib/python3.13/site-packages/numpy/__init__.py", line 333, in __getattr__
    raise AttributeError("module {!r} has no attribute "
                         "{!r}".format(__name__, attr))
AttributeError: module 'numpy' has no attribute 'long'. Did you mean: 'log'?

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.