Я запускаю это за корпоративным прокси
Использовал команду: RUN python -m nltk.downloader punkt
/usr/local/lib/python3.8/runpy.py:127: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
[nltk_data] Error loading punkt: <urlopen error [Errno -2] Name or
[nltk_data] service not known>
Error installing package. Retry? [n/y/e]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/site-packages/nltk/downloader.py", line 2533, in <module>
rv = downloader.download(
File "/usr/local/lib/python3.8/site-packages/nltk/downloader.py", line 790, in download
choice = input().strip()
EOFError: EOF when reading a line