Closed chrisfinazzo closed 3 years ago
This is a common issue if you pip install
things against Homebrew’s python
formula. The FoundNotFoundError
message is slightly misleading—it is not the python
command in the venv cannot be found, but the actual executable it points to (python
is a symlink). Homebrew deletes old installations when upgrading a formula, so when it upgrades python
, all things installed against it break.
There is really not much pipx can do; the best is to emit a better error message when this happens. Without Homebrew fixing this (extremely unlikely; this is the one most complained Homebrew issue for years at this point), the best advice I can provide is to not use Homebrew’s python
formula at all. Use pyenv or an installer from python.org instead.
For the record, the typical fix for pipx venvs suffering after an upgraded Homebrew python is just to execute:
pipx reinstall-all
Then you should be able to continue as normal.
@itsayellow, good to know. Was not aware of this.
I actually ripped out pipx
for pipenv
(and pipenv-virtualenv
) so I don't have to deal with the craziness of trying to get Homebrew and the various Python package managers to play nicely together - see @uranusjr's comment - it's been a thorn in the side of the Brew maintainers for a long time.
I have used rbenv extensively on other projects, so this is likely a better fit and I'm not flying blind about what's going on.
Describe the bug
As described here, while using
pipx
to use or upgrade the Standard Ebooks tools, the following error occurs:(For those who are unfamilar with the project, their install process is at the following URL.)
The SE maintainers believe this to be an upstream bug in
pipx
, but I am also not sure my setup is entirely correct either.How to reproduce Install the Tools, then run
pipx upgrade
Expected behavior
pipx
should download and install the latest version of the Tools.