mirror of
https://github.com/clearml/clearml
synced 2025-02-01 17:43:43 +00:00
12 lines
273 B
Python
12 lines
273 B
Python
|
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 []
|