-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_env.py
More file actions
21 lines (17 loc) · 758 Bytes
/
test_env.py
File metadata and controls
21 lines (17 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import platform
import sys
import importlib.metadata
##############################################
print(f"\n###### Installed Libraries ############")
for dist in importlib.metadata.distributions():
print(f"{dist.metadata['Name']}=={dist.version}")
# Print the Python version and other details
print(f"\n###### Python Environment Details ######")
print(f"Python Version : {platform.python_version()}")
print(f"Python Implementation: {platform.python_implementation()}")
print(f"Executable Path : {sys.executable}")
print(f"Platform : {platform.system()} {platform.release()}\n\n")
##############################################
import getpass
password = getpass.getpass("Enter password: ")
print("Password received (hidden)")