This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Include user scripts folder to PATH on Windows
Type: Stage:
Components: Windows Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: fireattack, lucatrv, meowmeowmeowcat, paul.moore, steve.dower, tim.golden, yinzara, zach.ware
Priority: normal Keywords:

Created on 2020-02-16 22:12 by lucatrv, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg362108 - (view) Author: Luca (lucatrv) * Date: 2020-02-16 22:12
When installing Python on Windows, and selecting the option “Add Python to PATH”, the following folders are added to the "PATH" environment variable:
- C:\Users\[username]\AppData\Local\Programs\Python\Python38\Scripts\
- C:\Users\[username]\AppData\Local\Programs\Python\Python38\
However also the following folder should be added, _before_ the other two:
- C:\Users\[username]\AppData\Roaming\Python\Python38\Scripts\
This is needed to correctly expose scripts of packages installed with `pip install --user` (`pip` emits a warning when installing a script with `--user` flag if that folder is not in "PATH").
msg399342 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-08-10 16:48
Seems reasonable, contributions welcome.

I think it is not possible to add it as part of a per-machine install, since there's no way to specify a user folder in the system key (environment variables are not expanded as you might assume).
History
Date User Action Args
2022-04-11 14:59:26adminsetgithub: 83839
2021-08-10 16:48:43steve.dowersetmessages: + msg399342
versions: + Python 3.11
2021-08-10 10:49:19meowmeowmeowcatsetnosy: + meowmeowmeowcat
2021-08-10 10:28:57meowmeowmeowcatsetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
components: + Windows, - Installation
2021-07-27 02:49:08yinzarasetnosy: + yinzara
2021-02-12 04:20:13fireattacksetnosy: + fireattack
2020-02-16 22:12:28lucatrvcreate