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

use virtualenv instead of python -m venv for ubuntu installation #853

Open
shelper opened this issue Jun 15, 2022 · 5 comments
Open

use virtualenv instead of python -m venv for ubuntu installation #853

shelper opened this issue Jun 15, 2022 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@shelper
Copy link

shelper commented Jun 15, 2022

I don't have sudo access on ubuntu 20.04 and i try to use pipx to setup some tools for me, e.g., pipx install poetry.
However, I got error

The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.8-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/username/.local/pipx/shared/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']


'/usr/bin/python3 -m venv --clear /home/username/.local/pipx/shared' failed

Later I figured out that i need to use virtualenv instead of /usr/bin/python3 -m venv., so i first run
virtualenv --clear /home/username/.local/pipx/shared, then run pipx install poetry, everything worked.

So the feature i am requesting is to add suppor to use virtualenv tool directly so pipx works on ubuntu without this error of ensurepip not found

@dukecat0 dukecat0 added the enhancement New feature or request label Sep 30, 2022
@gaborbernat
Copy link
Contributor

PR welcome.

@gaborbernat gaborbernat added the help wanted Extra attention is needed label Dec 2, 2023
@huxuan
Copy link
Member

huxuan commented Apr 30, 2024

I am interested in this issue and maybe a further question would be whether we should have virtualenv as dependency of pipx, or maybe optional dependency? Otherwise, it may not seem to be so meaningful to fallback to virtualenv when it is not installed with pipx?

@boltronics
Copy link

This is also an issue on my NAS box. I can install python 3.11.4 but it is a minimal install and provides no option to install venv. virtualenv is the only option here.

@stdedos
Copy link

stdedos commented Sep 26, 2024

PR welcome.

What would be missing from the #909?

@Gitznik
Copy link
Contributor

Gitznik commented Sep 26, 2024

What would be missing from the #909?

#1487 is essentially a more complete version of #909 FYI. It's currently under review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants