-
Notifications
You must be signed in to change notification settings - Fork 432
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 & Virtual Environments #617
Comments
You probably want to install your app using
Which will install If pipx is a wrapper around the plain python virtual environment, so if you want more control you can investigate that |
@chrisfinazzo are you good? Can we close this issue? |
@itsayellow I think so. I ended up continuing with the configuration I described - just using the built-in |
Describe the bug
Disclaimer: I am new to Python, apologies if this question has been answered elsewhere.
I want to create a virtual environment which contains its own version of Python and a tool which will be used in several different projects.
pipx run APP
seems to do this, but the environments are more temporary than I would want.Previously, I tried to do this using pyenv + pyenv-virtualenv, but couldn't get it to work consistently. In addition, the virtualenv plugin appears to be abandoned, so I need an alternative.
Expected behavior
Having come from rbenv, I expected similar behavior but was disappointed. E.g, a
.python-version
file with the version of Python that I installed and the environment switches automatically when I navigate to this directory.With this in mind, what is the current best practice for using virtual environments with pipx? For reference,
.local
with v3.9 is shown below to illustrate my current setup.The text was updated successfully, but these errors were encountered: