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 doesn't support local source dirs

See original GitHub issue

Describe the bug With regular pip, it’s possible to install packages not only from pypi but also from local dirs, for example if you’ve cloned a git repository to develop on it, it’s possible to run pip install /local/path/to/git/repository (especially with -e option, although it’s not always useful). But pipx fails when doing the same thing.

How to reproduce

% pipx install /local/path/to/git/repository
Not installing to existing directory '/local/path/to/git/repository'. Pass '--force' to force installation

Expected behavior The package should be installed in a venv like a pypi package.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
itsayellowcommented, Oct 4, 2020

I’m going to close this, but feel free to reopen it if you find the same problem on a recent version of pipx.

pipx certainly does support installing from a local path.

1reaction
itsayellowcommented, Sep 8, 2020

Hmm, version 0.12.3.1 is pretty ancient (It’s over a year and a half old). Please try installing a new version of pipx and try again, there have been many many improvements since that version.

You can follow the user-install instructions to install a new version of pipx just for your user: https://pipxproject.github.io/pipx/installation/

python3 -m pip install --user pipx
python3 -m pipx ensurepath
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing local package fails · Issue #365 · pypa/pipx - GitHub
Describe the bug pipx fails to install a local package. ... Ah, checking location does not help, because pip would still “prefer” the...
Read more >
pipx — Install and Run Python Applications in Isolated ...
By default, pipx uses the same package index as pip, PyPI. pipx can also install from all other sources pip can, such as...
Read more >
pipx · PyPI
These files are located in the bin directory of a Python installation, ... pipx list venvs are in /home/user/.local/pipx/venvs binaries are ...
Read more >
pip install - pip documentation v22.3.1
Local project directories. Local or remote source archives. pip also supports installing from “requirements files”, which provide an easy way to specify a ......
Read more >
In-depth Installation - Meltano Documentation
Currently Python 3.7, 3.8, 3.9, and 3.10 are supported. Some plugins do not yet support Python 3.10. Install pipx #. pip is a...
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