mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Initial beta version
This commit is contained in:
11
trains/backend_interface/task/repo/freeze.py
Normal file
11
trains/backend_interface/task/repo/freeze.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import sys
|
||||
|
||||
from .util import get_command_output
|
||||
|
||||
|
||||
def pip_freeze():
|
||||
try:
|
||||
return get_command_output([sys.executable, "-m", "pip", "freeze"]).splitlines()
|
||||
except Exception as ex:
|
||||
print('Failed calling "pip freeze": {}'.format(str(ex)))
|
||||
return []
|
||||
Reference in New Issue
Block a user