474
edits
(Created page with "I made this so I could install multiple versions of Python at once, mainly in virtual machines. It expects each one to be in the same directory as the script. This isn't updated for 3.13 and the separate experimental "free-threading" build. <syntaxhighlight lang="powershell"> $UsedPath = Get-ChildItem -Path . -Name "UsedInstallers" if (!$UsedPath) { $UsedPath = New-Item -ItemType Directory -Name "UsedInstallers" } Write-Host $UsedPath Get-ChildItem -Filter 'python-*....") |
No edit summary |
||
Line 1: | Line 1: | ||
I made this so I could install multiple versions of Python at once, mainly in virtual machines. It expects each one to be in the same directory as the script. This isn't updated for 3.13 and the separate experimental "free-threading" build. | I made this so I could install multiple versions of Python at once, mainly in virtual machines. It expects each one to be in the same directory as the script. This isn't updated for 3.13 and the separate experimental "free-threading" build. | ||
<syntaxhighlight lang="powershell"> | <syntaxhighlight lang="powershell" copy> | ||
$UsedPath = Get-ChildItem -Path . -Name "UsedInstallers" | $UsedPath = Get-ChildItem -Path . -Name "UsedInstallers" | ||
if (!$UsedPath) { | if (!$UsedPath) { |