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.

pipx fails on some packages where pipsi works

See original GitHub issue

pipx doesn’t find the binary for this package but pipsi does.

$ pipx install py-spy
No binaries associated with package py-spy. 
$ pipx --version
0.12.3.3
$ pipsi --version
pipsi, version 0.9, python /usr/bin/python3

$ pipsi install py-spy
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/user/.local/venvs/py-spy/bin/python3
Also creating executable in /home/user/.local/venvs/py-spy/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
Collecting py-spy
  Using cached https://files.pythonhosted.org/packages/26/c2/bacd6ff83b43e1eff51d0d93a1fc930daad02fa93c0499d6facece57f786/py_spy-0.1.10-py2.py3-none-manylinux1_x86_64.whl
Installing collected packages: py-spy
Successfully installed py-spy-0.1.10
  Linked script /home/user/.local/bin/py-spy
Done.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ghostcommented, May 5, 2019

@cs01 Thanks for checking. It works for me too on the latest pipx.

0reactions
cs01commented, May 4, 2019

@amcgregor nice! I am a big fan of venv and I use a similar shell function I called venvhere which I think does the same thing as your venv function :

venvhere () 
{ 
    python3 -m venv venv --prompt $(basename $PWD) && source venv/bin/activate && pip install -U pip --quiet
}

Why does this seem to be a good idea vs. “proper” use of virtual environments, directly?

It is only a good idea for certain workflows. I agree that creating and manually managing venv’s for development of a project is the best way to do it. pipx is definitely not meant to be a replacement for all venv interactions.

Its goal is to make CLI binaries accessible globally, that’s it. Using venv is the best way for pipx to do that. pipx saves you a few steps, and makes a single UI to list, upgrade, uninstall, these binaries/packages. I actually don’t know of an easy way to know which entry points a package offers other than using pipx or inspecting the package’s source code.

If you don’t find value in it, that is totally fine! No need to use it. I made it to solve a problem: simplify and improve the installation process of another Python program I made.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - pipx
If installation into this "virtual environment" using pip fails, then it's likely that the problem is with the package or your host system....
Read more >
Making spec the argument of install · Issue #147 · pypa/pipx
I am quite confused why the package name I give pipx wouldn't normally be passed to pip install. I don't see any explanation...
Read more >
Pipx failed to build packages - Stack Overflow
I received the same error, and was finally able to resolve after running the following commands: Using Homebrew: brew install recordclass.
Read more >
pipx · PyPI
pipx : execute binaries from Python packages in isolated environments ... ships with npm - and Python's pipsi. pipx does not ship with...
Read more >
virtualenv Lives! - Hynek Schlawack
Setting up Python to the point to be able install packages from PyPI can be ... by installing some shiny package you heard...
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