Код: Выделить всё
env_var:
env:
global:
/Library/Application Support/pip/pip.conf, exists: False
site:
/opt/anaconda3/pip.conf, exists: False
user:
/Users/julio/.pip/pip.conf, exists: False
/Users/julio/.config/pip/pip.conf, exists: False
~
Код: Выделить всё
import requests
response = requests.get("https://pypi.org/simple/")
response.raise_for_status()
Код: Выделить всё
pip install docling 1 ✘ ollama_llama32_11b base system
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('
: Failed to establish a new connection: [Errno 65] No route to host')': /simple/docling/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 65] No route to host')': /simple/docling/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 65] No route to host')': /simple/docling/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 65] No route to host')': /simple/docling/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 65] No route to host')': /simple/docling/
ERROR: Could not find a version that satisfies the requirement docling (from versions: none)
ERROR: No matching distribution found for docling
Мой файл /etc/resolv.conf выглядит следующим образом.
Код: Выделить всё
#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
# scutil --dns
#
# SEE ALSO
# dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
search home
nameserver 8.8.8.8
nameserver 8.8.4.4


< /p>
Я пробовал использовать другую сеть Wi-Fi, но это тоже не имело никакого значения
Одна любопытная вещь, которую я заметил, была на моем Little Snitch: когда я запустите команду, отобразятся эти правила:

но даже когда я пытаюсь изменить их на «разрешить», все равно получаю ту же ошибку установки.
Подробнее здесь: https://stackoverflow.com/questions/792 ... trytotal-4