no module named pip python 2.7 ubuntu code example Example 1: no module named pip for Windows: python -m ensurepip Example 2: no module named pip python3 -m ensurepip