Some executables not linked during pipx install
See original GitHub issuepipx install
is not finding all executables for certain packages.
For example, here is what happened when I tried to install jupyter
using pipx
:
$ pipx install jupyter --include-deps
installed package jupyter 1.0.0, Python 3.7.3
These binaries are now globally available
- iptest
- iptest3
- ipython
- ipython3
- jupyter-bundlerextension
- jupyter-console
- jupyter-kernel
- jupyter-kernelspec
- jupyter-nbconvert
- jupyter-nbextension
- jupyter-notebook
- jupyter-qtconsole
- jupyter-run
- jupyter-serverextension
- jupyter-trust
done! ✨ 🌟 ✨
$
$
$ jupyter
-bash: jupyter: command not found
$ which jupyter
$
$ cd ~/.local/bin
$ ls *jupyter*
jupyter-bundlerextension jupyter-nbconvert jupyter-run
jupyter-console jupyter-nbextension jupyter-serverextension
jupyter-kernel jupyter-notebook jupyter-trust
jupyter-kernelspec jupyter-qtconsole
$ # Looking in ~/.local/bin, none found.
$
$ cd ~/.local/pipx/venvs/jupyter/bin/
$ ls *jupyter*
jupyter jupyter-migrate jupyter-run
jupyter-bundlerextension jupyter-nbconvert jupyter-serverextension
jupyter-console jupyter-nbextension jupyter-troubleshoot
jupyter-kernel jupyter-notebook jupyter-trust
jupyter-kernelspec jupyter-qtconsole
$ # Looking in ~/.local/pipx/venvs/jupyter/bin. Expected no `jupyter` executable;
$ # found `jupyter` executable, as well as `jupyter-migrate` and
$ # `jupyter-troubleshoot`, none of which were not found in ~/.local/bin.
According to the readme’s “How it Works” section, pipx install
scans the new virtualenv’s bin/ directory, then links found executables into ~/.local/bin.
Further, output included in a comment from a previous issue indicates that pipx
properly linked jupyter
, jupyter-migrate
and jupyter-troubleshoot
into ~/.local/bin
. Is this a regression?
I am running macOS 10.14.4 and Python 3.7.3 installed with pyenv
. pipx
is likewise using Python 3.7.3.
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Some executables not linked during pipx install #143 - GitHub
pipx install is not finding all executables for certain packages. For example, here is what happened when I tried to install jupyter using...
Read more >Unable to install brownie using pipx - python - Stack Overflow
I used the github installation method and it worked for me, these are the commands that I used on VSCode terminal.
Read more >pipx — Install and Run Python Applications in Isolated ...
WARNING: The script pipx.exe is installed in `<USER folder>\AppData\Roaming\Python\Python3x\Scripts` which is not on PATH. If so, go to the mentioned folder ...
Read more >pipx · PyPI
pipx : execute binaries from Python packages in isolated environments ... 'sudo' is not required to do this. pipx install PACKAGE pipx ......
Read more >Introduction | Documentation | Poetry - Python dependency ...
Any installs performed using get-poetry.py should be uninstalled and reinstalled using install.python-poetry.org to ensure in-place upgrades are possible.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a functional branch that fixes this and still avoids infinite recursion. I’ll make sure it’s ok and submit tomorrow.
I think the problem is in
venv_metadata_inspector
_dfs_package_apps
:Specifically if this function finds apps for a particular package, it will NOT search that package’s dependency tree for apps. (Which is NOT correct.)
In this code:
If the following statement is removed:
Then everything seems to work fine.
jupyter
is installed without that statement.