Skip to content

Instantly share code, notes, and snippets.

@makmanalp
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save makmanalp/a8d0f79abc8c94f3162f to your computer and use it in GitHub Desktop.

Select an option

Save makmanalp/a8d0f79abc8c94f3162f to your computer and use it in GitHub Desktop.
Ansible commands to bootstrap get-pip to work around ubuntu issue with missing ensurepip
- name: create a new venv
shell: "pyvenv-3.4 --without-pip {{atlas_prefix}}/env/"
- name: install pip from get-pip into env
shell: ". {{atlas_prefix}}/env/bin/activate; curl https://bootstrap.pypa.io/get-pip.py | python3"
@makmanalp
Copy link
Author

Can't use the pip module to create the venv because the bug causes the virtualenv creation to fail because ensurepip is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment