Every line of 'conda switch python version' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
146 @staticmethod 147 def python_version(): 148 """ 149 :return: python version object 150 """ 151 import sys 152 # version.major, version.minor, version.micro 153 return sys.version_info
32 def python_version() -> None: 33 """ 34 Check that the Python version is supported 35 """ 36 py_version = sys.version.split()[0] 37 if py_version < "3.5": 38 print(error_message(), "Unsupported Python version") 39 sys.exit(1)
282 def check_python_version(): 283 if sys.version_info < (3, 5): 284 stderr.write("DistAlgo requires Python version 3.5 or newer.\n") 285 return False 286 else: 287 return True