This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
scripts/verify-windows.ps1
fails to find installed python3
#1583
Labels
scripts/verify-windows.ps1
does not find python3 that has been installed by Windows itself. The script reports the errorSetup
Repro
scripts/verify-windows.ps1
Result
Expected
No error and the successful output "Machine setup. Please use Visual Studio Developer Command prompt to build."
Notes
If I run the command of line 86 of the verify script
Get-Command -All -Name "python"
I get the resultand if at that same ps prompt I type that long path, or python, or python3...then all three methods run python 3...
This suggests that the verify script's method of version checking is not sufficient to detect Windows Store installed python. Naturally, the Windows Store is....desired to also be supported. This is likely related to the Windows Store and App Execution Aliases.
It is not possible to add the Windows Store python manually to the PATH. That location is typically cryptic and not user maintainable. For example, on my computer it is
C:\Users\dale\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0
The text was updated successfully, but these errors were encountered: