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

pipx installed pipx python points to exact path of interpretter #10

Open
mattsb42-aws opened this issue Jul 16, 2019 · 1 comment
Open

Comments

@mattsb42-aws
Copy link
Member

When pipipxx is pip installed, the pipx installed pipx install python symlink points to the exact filepath of the interpretter used when pip install is called.

This causes problems because this file might not exist when the python used pip install pipipxx is updated.

ex:

ls -l `which python3`
/usr/bin/python3 -> /..path..to..brew..stuff../3.7.3/bin/python

The python symlink in the pipx installed pipx environment points to the exact 3.7.3 brew installed python. This then breaks when brew updates python and removes the old files.

Instead, pipipxx should use the path of the file called with pip install rather than the path of the file executed.

@mattsb42-aws
Copy link
Member Author

mattsb42-aws commented Jul 17, 2019

Another option here would be to use symlinks=False when creating the venv, and just let it copy the interpreter instead of linking it. That would make the pipx install more independent and robust.

If I go this route, I will need to determine the right approach for upgrading that runtime (maybe just pix uninstall pipx && pip install pipipxx?)

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