Не удалось установить tabula-py
У меня нет большого опыта работы с Python, и мне нужна помощь. Я безуспешно пытаюсь установить разные пакеты. Совсем недавно я попытался установить tabula-py, используяpip install tabula-py
Но я получаю тот же ответ.
Как это решить?
Collecting tabula-py
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000026AEB39CDC8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/tabula-py/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000026AEB3B0888>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/tabula-py/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000026AEB3BF088>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/tabula-py/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000026AEB3BF888>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/tabula-py/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000026AEB3BF6C8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/tabula-py/
ERROR: Could not find a version that satisfies the requirement tabula-py (from versions: none)
ERROR: No matching distribution found for tabula-py
1 ответ
Ошибка вызвана тем, что pip не может подключиться к серверу pypi.org, загрузить необходимый пакет и установить его.
Сначала попробуйте проверить, можете ли вы подключиться к pypi.org (из cmd или оболочки):
ping pypi.org
Если вы устанавливаете соединение через обычную оболочку, что-то может быть не так в ваших настройках Интернета в python3. Вы можете проверить, можете ли вы подключиться через этот скрипт:
import urllib.request
with urllib.request.urlopen('http://pypi.org/') as response:
status = response.status
if 500 > status >= 400:
print("Connection Error from Client: " + str(status))
elif 600 > status >= 500:
print("Connection Error from Server: " + str(status))
else:
print("Connection Successful")
Если есть проблемы с подключением, рассмотрите возможность загрузки файла wheel сtabula-py
и устанавливаем его локально:
pip install /path/to/tabula_py-1.4.2-py3-none-any.whl
В случае No matching distribution found...
: Внимательно проверьте версию Python. На некоторых машинах вы можете найти более одной версии python, иногда устанавливаемой сторонним программным обеспечением (например, Microsoft Visual Studio). Проверьте версию своего пипса с помощью команды:
pip -V