Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection error with '!pip install torchxrayvision' on kaggle

Tags:

python

pip

kaggle

When I run the following code in my kaggle notebook, i get an error.

import os,sys
sys.path.insert(0,"..")
sys.path.insert(0,"../..")
from glob import glob
import matplotlib.pyplot as plt
import numpy as np
import torch
import torchvision
import sys
import torch.nn.functional as F
import pandas as pd

This part works fine.

!pip install torchxrayvision

This produces an error. The error message is:

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 0x7f3e22307cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/torchxrayvision/

Strangely, in another, older kaggle notebook I can run the same code without an error. What ist the problem and how do I solve it?

like image 225
Artur D Avatar asked Oct 26 '25 18:10

Artur D


1 Answers

Just turn the on switch for internet access in your notebook settings and try again;)

like image 151
The 5th column mouse Avatar answered Oct 29 '25 08:10

The 5th column mouse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!