-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
The Scoop manifest for Python (python.json) does not handle the Python user base scripts directory, so CLI scripts from packages installed in user mode (pip install --user
) are not available on the PATH. Performing user installations of packages is considered best practice, and many packages (such as the popular Pipenv) recommend doing them.
Two possible solutions might be:
- Construct the user base scripts directory and add it to PATH. The path can be constructed as follows:
Join-Path -Path (Split-Path -Path (python -m site --user-site) -Parent) -ChildPath Scripts
- Point the PYTHONUSERBASE environment variable to a directory within the Python install directory and persist it.
Related issue: ScoopInstaller/Versions#196
TheRandomLabs and Rafeqm