Why am I getting ImportError: No module named pip

2020-01-30 06:57发布

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 pip command, I get an Import error saying no module named pip. I am running 32bit python on a windows7 machine

10条回答
祖国的老花朵
2楼-- · 2020-01-30 07:31

Follow steps given in https://michlstechblog.info/blog/python-install-python-with-pip-on-windows-by-the-embeddable-zip-file/

  1. bypassing pythonxx.__pth thru renaming
  2. adding following in to Environment variables
D:\Pythonx.x.x 
D:\Python3.6.5\DLLs
D:\Pythonx.x.x\lib
D:\Pythonx.x.x\lib\plat-win 
D:\Pythonx.x.x\lib\site-packages
查看更多
forever°为你锁心
3楼-- · 2020-01-30 07:35

I'v solved this error by setting the correct path variables

    C:\Users\name\AppData\Local\Programs\Python\Python37\Scripts
    C:\Users\name\AppData\Local\Programs\Python\Python37\Lib\site-packages
查看更多
你好瞎i
4楼-- · 2020-01-30 07:40

I've solved this error downloading the executable file for python 3.7. I've had downloaded the embeddeable version and got that error. Now it works! :D

查看更多
何必那么认真
5楼-- · 2020-01-30 07:41

try to type pip3 instead pip. also for upgrading pip dont use pip3 in the command

python -m pip install -U pip

maybe it helps

查看更多
登录 后发表回答