diff --git a/plugins/package-managers/python/src/main/kotlin/Pip.kt b/plugins/package-managers/python/src/main/kotlin/Pip.kt index ef26725f1867a..de7700770805e 100644 --- a/plugins/package-managers/python/src/main/kotlin/Pip.kt +++ b/plugins/package-managers/python/src/main/kotlin/Pip.kt @@ -115,7 +115,7 @@ class Pip( PythonInspector.inspect( workingDir = workingDir, definitionFile = definitionFile, - pythonVersion = pythonVersion.replace(".", ""), + pythonVersion = pythonVersion.split('.', limit = 3).take(2).joinToString(""), operatingSystem = operatingSystem ) } finally {