kaggle中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 0x7a356dc338d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/keras-bert/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7a356dc33410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/keras-bert/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7a356dc33290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/keras-bert/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7a356dc33590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/keras-bert/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7a356dc354d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/keras-bert/ ERROR: Could not find a version that satisfies the requirement keras_bert (from versions: none) ERROR: No matching distribution found for keras_bert
时间: 2023-07-03 11:13:16 浏览: 306
面试:面试=简历指南+ LeetCode + Kaggle
这个问题可能是由于网络问题导致的。Kaggle 服务器无法连接到 PyPI(Python 包索引)服务器以下载 Keras-Bert 库。解决这个问题的一种方法是使用 Kaggle 内置的 Internet 连接。
在 Kaggle Notebook 的右侧栏中,单击“Settings”选项卡,然后打开“Internet”开关。这将启用 Kaggle Notebook 的 Internet 连接,使您可以下载所需的库。
如果您已经启用了 Kaggle Notebook 的 Internet 连接,但仍然遇到此错误,请确保您的代码中正确地指定了要下载的库的名称和版本号。您可以尝试使用以下命令手动安装 Keras-Bert 库:
```python
!pip install keras-bert==0.81.0
```
此命令将强制安装指定版本的 Keras-Bert 库,即版本号为 0.81.0。您可以根据需要更改版本号。
阅读全文