Unable to install Python library in Kaggle notebook
Asked Answered
R

3

9

When I run !pip install 'library_name' in the kaggle console it throws this warning:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) 
after connection broken by 'NewConnectionError('
<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fc7bd22aed0>:
Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
')': /simple/pip/

and ultimately doesn't install the library.

What is the reson for this warning and how to solve this problem?

Redwine answered 27/12, 2020 at 8:38 Comment(0)
R
10

Open the tab bar on the right -> In the Settings drop-down, enable 'Internet'. Now you can install any python library.

Redwine answered 27/12, 2020 at 8:38 Comment(0)
B
8

In case the internet option is not visible, you must confirm your phone number. Kaggle requires your phone number to be verified when you first register in order for you to use certain functions, such internet access.

Another source: https://mcmap.net/q/1171489/-cannot-access-internet-on-kaggle-notebook

Boxboard answered 19/10, 2023 at 10:41 Comment(1)
Thank you very much, it was obvious for those who read manuals :)Dinahdinan
B
3

In addition to what @Yash has already answered. I got the option to enable Internet under 'Notebook Option':

enter image description here

Buckle answered 26/6, 2023 at 17:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.