question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

command not found: pipx

See original GitHub issue

I installed pipx on macOS 10.13 with python3 installed via brew. If I rerun the commands it looks like this … but I still can’t run the command.

❯ python3 -m pip install --user pipx
Requirement already satisfied: pipx in ./Library/Python/3.7/lib/python/site-packages (0.14.0.0)
Requirement already satisfied: argcomplete<2.0,>=1.9.4 in ./Library/Python/3.7/lib/python/site-packages (from pipx) (1.10.3)
Requirement already satisfied: userpath in ./Library/Python/3.7/lib/python/site-packages (from pipx) (1.3.0)
Requirement already satisfied: click in ./Library/Python/3.7/lib/python/site-packages (from userpath->pipx) (7.0)

❯ python3 -m pipx ensurepath
The directory `/Users/randomuser/.local/bin` is already in PATH. If you are sure you want to proceed, try again with the '--force' flag.

Otherwise pipx is ready to go! ✨ 🌟 ✨

❯ echo $PATH
/Users/randomuser/.nvm/versions/node/v12.13.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/randomuser/.local/bin

❯ tree .local
.local
├── bin
└── pipx
    └── venvs

3 directories, 0 files

❯ python3 --version
Python 3.7.5

❯ pipx
zsh: command not found: pipx```

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

43reactions
behrtamcommented, Nov 28, 2019

Had a fresh look and fixed it with:

export PATH="${PATH}:$(python3 -c 'import site; print(site.USER_BASE)')/bin"
11reactions
nicolaevladescucommented, Jun 16, 2021

That’s all great but this is a manual workaround.

The correct approach should be python3 -m pipx ensurepath --force like it was suggested, this is how i fixed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation - pipx
Installing on Linux works best with a Linux Package Manager. pipx works on macOS, linux, and Windows. Install pipx. On macOS: brew install...
Read more >
The term 'pipx' is not recognized as the name of a cmdlet
pipx : The term 'pipx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling...
Read more >
The term 'pipx' is not recognized, but installed : r/vscode - Reddit
I've installed pipx with Visual Studio Code, but terminal does not recognize 'pipx'. Everything seems to be installed correctly, ...
Read more >
pipx - command-not-found.com
Install a package in a virtual environment and add entry points to path: pipx install package; List installed packages: pipx list; Run an...
Read more >
pipx - PyPI
pipx does not ship with pip, but installing it is often an important part of ... These entry points let users call into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found