Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow pipx to use active python (and pip) #974

Closed
yozachar opened this issue May 4, 2023 · 1 comment
Closed

Allow pipx to use active python (and pip) #974

yozachar opened this issue May 4, 2023 · 1 comment

Comments

@yozachar
Copy link

yozachar commented May 4, 2023

How would this feature be useful?

I'm using asdf to manage Python and pipx versions. I have created an asdf-pipx plugin, which executes just fine as long as you've python >= 3.7 on your system.

$ asdf which python
/home/us-er/.asdf/installs/python/3.11.3/bin/python

$ asdf which pip   
/home/us-er/.asdf/plugins/python/shims/pip

$ asdf which pipx
/home/us-er/.asdf/installs/pipx/1.2.0/bin/pipx

$ python --version
Python 3.11.3

$ pip --version   
pip 23.1.2 from /home/us-er/.asdf/installs/python/3.11.3/lib/python3.11/site-packages/pip (python 3.11)

$ pipx --version
1.2.0

$ pipx list          
nothing has been installed with pipx 😴

$ pipx install poetry
Fatal error from pip prevented installation. Full pip output in file:
    /home/us-er/.local/pipx/logs/cmd_2023-05-04_10.56.01_pip_errors.log

Error installing poetry.

$ cat /home/us-er/.local/pipx/logs/cmd_2023-05-04_10.56.01_pip_errors.log
PIP STDOUT
----------

PIP STDERR
----------
/home/us-er/.local/pipx/venvs/poetry/bin/python: No module named pip

Describe the solution you'd like

I'd like pipx to use the active python when installing python-applications.

Describe alternatives you've considered

Follow steps similar to what poetry has done:


Probably related to #387

@yozachar yozachar changed the title allows pipx to use active python and pip Allow pipx to use active python (and pip) May 4, 2023
@yozachar
Copy link
Author

yozachar commented May 4, 2023

The issue was same as #278 #791 #888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant