Created
July 29, 2019 18:01
-
-
Save simomarsili/dcadc9a4e8ceff9043bcc56c540479cf to your computer and use it in GitHub Desktop.
system info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""System info""" | |
import platform | |
import sys | |
import numpy | |
import subprocess | |
print( | |
""" | |
platform: | |
%s | |
architecture: | |
%s, %s | |
Python: | |
%s | |
NumPy: | |
%s | |
gfortran: | |
%s | |
""" % ( | |
platform.platform(), | |
platform.architecture(), sys.maxsize > 2**32, | |
sys.version, | |
numpy.__version__, | |
subprocess.run(['gfortran', '-v'], stderr=subprocess.PIPE).stderr.decode(), | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment