diff --git a/onnxruntime/python/_pybind_state.py b/onnxruntime/python/_pybind_state.py index 86a24f1895..e4f8ec4e97 100644 --- a/onnxruntime/python/_pybind_state.py +++ b/onnxruntime/python/_pybind_state.py @@ -21,6 +21,6 @@ except ImportError as e: # TODO: Add a guard against False Positive error message # As a proxy for checking if the 2019 VC Runtime is installed, # we look for a specific dll only shipped with the 2019 VC Runtime - if platform.system() == "Windows" and not os.path.isfile("C:\\Windows\\System32\\vcruntime140_1.dll"): + if platform.system().lower() == 'windows' and not os.path.isfile('c:\\Windows\\System32\\vcruntime140_1.dll'): warnings.warn("Unless you have built the wheel using VS 2017, " - "please install the 2019 Visual C++ runtime and then try again.") + "please install the 2019 Visual C++ runtime and then try again") diff --git a/tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml index f554b7e5bb..4534551889 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml @@ -625,10 +625,6 @@ stages: PythonVersion: '3.6' Python37: PythonVersion: '3.7' - Python38: - PythonVersion: '3.8' - Python39: - PythonVersion: '3.9' steps: - checkout: self clean: true