Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit99a9ab1

Browse files
authored
Further improves Advanced installation docs for PyManager (GH-134541)
1 parent1729468 commit99a9ab1

File tree

1 file changed

+34
-13
lines changed

1 file changed

+34
-13
lines changed

‎Doc/using/windows.rst

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,14 @@ configuration option.
504504
installing and uninstalling.
505505
506506
507+
.. _Add-AppxPackage:https://learn.microsoft.com/powershell/module/appx/add-appxpackage
508+
509+
.. _Remove-AppxPackage:https://learn.microsoft.com/powershell/module/appx/remove-appxpackage
510+
511+
.. _Add-AppxProvisionedPackage:https://learn.microsoft.com/powershell/module/dism/add-appxprovisionedpackage
512+
513+
.. _PackageManager:https://learn.microsoft.com/uwp/api/windows.management.deployment.packagemanager
514+
507515
.. _pymanager-advancedinstall:
508516

509517
Advanced Installation
@@ -559,31 +567,44 @@ downloaded MSIX can be installed by launching or using the commands below.
559567

560568
..code-block::powershell
561569
562-
$> winget download 9NQ7512CXL7T-e--skip-license--accept-package-agreements--disable-interactivity
570+
$> winget download 9NQ7512CXL7T-e--skip-license--accept-package-agreements--accept-source-agreements
563571
564572
To programmatically install or uninstall an MSIX using only PowerShell, the
565-
`Add-AppxPackage<https://learn.microsoft.com/powershell/module/appx/add-appxpackage>`_
566-
and `Remove-AppxPackage<https://learn.microsoft.com/powershell/module/appx/remove-appxpackage>`_
567-
PowerShell cmdlets are recommended:
573+
`Add-AppxPackage`_ and `Remove-AppxPackage`_ PowerShell cmdlets are recommended:
568574

569575
..code-block::powershell
570576
571577
$>Add-AppxPackage C:\Downloads\python-manager-25.0.msix
572578
...
573579
$>Get-AppxPackage PythonSoftwareFoundation.PythonManager|Remove-AppxPackage
574580
575-
The native APIs for package management may be found on the Windows
576-
`PackageManager<https://learn.microsoft.com/uwp/api/windows.management.deployment.packagemanager>`_
577-
class. The:func:`!AddPackageAsync` method installs for the current user, or use
578-
:func:`!StagePackageAsync` followed by:func:`!ProvisionPackageForAllUsersAsync`
579-
to install the Python install manager for all users from the MSIX package. Users
580-
will still need to install their own copies of Python itself, as there is no way
581-
to trigger those installs without being a logged in user.
581+
The latest release can be downloaded and installed by Windows by passing the
582+
AppInstaller file to the Add-AppxPackage command. This installs using the MSIX
583+
on python.org, and is only recommended for cases where installing via the Store
584+
(interactively or using WinGet) is not possible.
585+
586+
..code-block::powershell
587+
588+
$>Add-AppxPackage-AppInstallerFile https://www.python.org/ftp/python/pymanager/pymanager.appinstaller
589+
590+
Other tools and APIs may also be used to provision an MSIX package for all users
591+
on a machine, but Python does not consider this a supported scenario. We suggest
592+
looking into the PowerShell `Add-AppxProvisionedPackage`_ cmdlet, the native
593+
Windows `PackageManager`_ class, or the documentation and support for your
594+
deployment tool.
595+
596+
Regardless of the install method, users will still need to install their own
597+
copies of Python itself, as there is no way to trigger those installs without
598+
being a logged in user. When using the MSIX, the latest version of Python will
599+
be available for all users to install without network access.
582600

583601
Note that the MSIX downloadable from the Store and from the Python website are
584602
subtly different and cannot be installed at the same time. Wherever possible,
585-
we suggest using the above commands to download the package from the Store to
586-
reduce the risk of setting up conflicting installs.
603+
we suggest using the above WinGet commands to download the package from the
604+
Store to reduce the risk of setting up conflicting installs. There are no
605+
licensing restrictions on the Python install manager that would prevent using
606+
the Store package in this way.
607+
587608

588609
.. _pymanager-admin-config:
589610

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp