Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: chrysle <[email protected]>
Co-authored-by: Jason Lam <[email protected]>
  • Loading branch information
3 people authored Jan 13, 2024
1 parent 0f1336f commit 746cbd4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,15 @@ Reference:

## macOS issues

If you want to use a Pipx installed package in a shebang (a common example is the AWS cli),
you will likely not be able to, because the binary will be under `~/Library/Application Support/pipx`.
If you want to use a Pipx-installed package in a shebang (a common example is the AWS CLI),
you will likely not be able to, because the binary will be stored under `~/Library/Application Support/pipx/`.
The space in the path is not supported in a shebang. A simple solution is symlinking
`~/Library/Application Support/pipx` to `~/Library/ApplicationSupport/pipx`, and using that as the
path in the shebang instead.

```
ln -s $HOME/Library/Application Support/pipx $HOME/Library/ApplicationSupport/pipx
mkdir $HOME/Library/ApplicationSupport
ln -s $HOME/Library/Application\ Support/pipx $HOME/Library/ApplicationSupport/pipx
```

## Does it work to install your package with `pip`?
Expand Down

0 comments on commit 746cbd4

Please sign in to comment.