diff --git a/elements/pip-and-virtualenv/README.rst b/elements/pip-and-virtualenv/README.rst
new file mode 100644
index 000000000..5516ed0d3
--- /dev/null
+++ b/elements/pip-and-virtualenv/README.rst
@@ -0,0 +1,12 @@
+==================
+pip-and-virtualenv
+==================
+
+This element installs pip and virtualenv in the image. If the package
+installtype is used then these programs are installed from distribution
+packages. If the source installtype is used these programs are installed
+from get-pip.py and pip (respectively).
+
+To install pip and virtualenv from package:
+
+  export DIB_INSTALLTYPE_pip_and_virtualenv=package
diff --git a/elements/pip-and-virtualenv/element-deps b/elements/pip-and-virtualenv/element-deps
new file mode 100644
index 000000000..73d637d49
--- /dev/null
+++ b/elements/pip-and-virtualenv/element-deps
@@ -0,0 +1,2 @@
+package-installs
+source-repositories
diff --git a/elements/pip-and-virtualenv/install.d/get-pip-py-source-install/01-install-pip b/elements/pip-and-virtualenv/install.d/get-pip-py-source-install/01-install-pip
new file mode 100755
index 000000000..31804aab4
--- /dev/null
+++ b/elements/pip-and-virtualenv/install.d/get-pip-py-source-install/01-install-pip
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
+    set -x
+fi
+set -eu
+set -o pipefail
+
+python /tmp/get-pip.py
+pip install virtualenv
diff --git a/elements/pip-and-virtualenv/package-installs.yaml b/elements/pip-and-virtualenv/package-installs.yaml
new file mode 100644
index 000000000..85c7f0ebc
--- /dev/null
+++ b/elements/pip-and-virtualenv/package-installs.yaml
@@ -0,0 +1,4 @@
+python-pip:
+  installtype: package
+python-virtualenv:
+  installtype: package
diff --git a/elements/pip-and-virtualenv/source-repository-pip-and-virtualenv b/elements/pip-and-virtualenv/source-repository-pip-and-virtualenv
new file mode 100644
index 000000000..f26e3cc5b
--- /dev/null
+++ b/elements/pip-and-virtualenv/source-repository-pip-and-virtualenv
@@ -0,0 +1 @@
+get-pip-py file /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py