diff --git a/setup.py b/setup.py index 2ee10c8971..383a2e2727 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,6 @@ def read_version(): "urllib3>=1.21.1,!=1.25,!=1.25.1", "docker-compose>=1.25.2", "PyYAML>=5.3, <6", # PyYAML version has to match docker-compose requirements - "psutil", ], "scipy": ["scipy>=0.19.0"], } diff --git a/src/sagemaker/local/image.py b/src/sagemaker/local/image.py index 573acafeb1..1c73833a4f 100644 --- a/src/sagemaker/local/image.py +++ b/src/sagemaker/local/image.py @@ -31,10 +31,8 @@ import tempfile from distutils.spawn import find_executable -from signal import SIGTERM from threading import Thread -import psutil from six.moves.urllib.parse import urlparse import sagemaker @@ -843,8 +841,6 @@ def run(self): def down(self): """Placeholder docstring""" - for process in psutil.Process(self.process.pid).children(): - process.send_signal(SIGTERM) self.process.terminate()