X Tutup
The Wayback Machine - https://web.archive.org/web/20260314032632/https://github.com/python/cpython/issues/99228
Skip to content

Python 3.10 installed from the Microsoft Store does not add scripts to path #99228

@avalonv

Description

@avalonv

Bug report

After installing Python 3.10 from the Microsoft Store, I tried to install a package and was hit with the following warning:


WARNING: The script reCBZ.exe is installed in 'C:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Which prevents me from calling the script directly, I have to use python -m reCBZ

Manually adding the path works, however I would have expected the Python installation from the Microsoft store to have done this automatically.

Steps to reproduce:

  1. Install Python 3.10 from Microsoft Store
  2. Pip install a python package which provides a script 'myscript' (ex reCBZ)
  3. Try to call the script with 'myscript'

Expected results:

  1. local-packages is in PATH
  2. Script runs

Actual results:

  1. local-packages is not in PATH
  2. Windows complains about 'myscript' not being a recognized command

I'm normally a Linux gal so I deeply apologize if this is a misunderstanding from my part -_-

Your environment

  • CPython versions tested on: Python 3.10 (Microsoft store)
  • Operating system and architecture: Windows 10.0.19043 Build 19043, x86-64

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup