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?
sys.path.insert(0,"..")
before importingsys
? – Sabito 錆兎