Search code examples
pythonwindows-7pip

Why am I getting ImportError: No module named pip ' right after installing pip?


I have installed pip and ez setup. I also checked the system path and I can see the module in the folder structure. Still when I try to run the pip command, I get an Import error saying no module named pip. I am running 32-bit Python on a Windows 7 machine.


Solution

  • Just be sure that you have included the Python executable in the Windows Environment Variables, System PATH variable, and then run:
    python -m ensurepip.

    or if you have permission issue, run:
    python -m ensurepip --user