4d557004c3
This reverts commitd6cc3c4187
. (cherry picked from commitde11b473a6
)
15 lines
244 B
Python
Executable file
15 lines
244 B
Python
Executable file
#!/usr/bin/env python
|
|
"""Show python and pip versions."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
try:
|
|
import pip
|
|
except ImportError:
|
|
pip = None
|
|
|
|
print(sys.version)
|
|
|
|
if pip:
|
|
print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))
|