Извините, если это простой вопрос, но я новичок в Python.Я пытаюсь загрузить модуль "pynrrd" в Kaggle.Я получаю ошибки импорта, я не уверен, почему.
Вот код, который я тестирую:
# Required modules
import numpy as np
!pip install pynrrd
import matplotlib.pyplot as plt
import matplotlib
import tensorflow as tf
import time
import os
import sys
import pydicom
import pynrrd
import scipy.ndimage
import scipy.misc
import pickle
import random
import skimage
%matplotlib notebook
if sys.version_info[0] != 3:
raise Exception("Python version 3 has to be used!")
print("Currently using")
print("\t numpy ", np.__version__)
print("\t scipy ", scipy.__version__)
print("\t matplotlib ", matplotlib.__version__)
print("\t tensorflow ", tf.__version__)
print("\t pydicom ", pydicom.__version__)
print("\t nrrd ", nrrd.__version__)
print("\t skimage ", skimage.__version__)
np.random.seed(37) # for reproducibility
Вот сообщения об ошибках:
Collecting pynrrd
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f344e3d36d8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/pynrrd/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f344e3d3668>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/pynrrd/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f344e3d3550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/pynrrd/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f344e3d32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/pynrrd/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f344e3d3358>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/pynrrd/
Could not find a version that satisfies the requirement pynrrd (from versions: )
No matching distribution found for pynrrd
ImportError Traceback (most recent call last)
<ipython-input-4-0f6894d371c4> in <module>()
10 import sys
11 import pydicom
---> 12 import pynrrd
13 import scipy.ndimage
14 import scipy.misc
ImportError: No module named 'pynrrd'
PS: я также пробовал nrrd вместоно это тоже не сработало