Python `no module pip.__main__;` error when trying to install a module

后端 未结 4 1319

I am getting the following error on my Raspberry Pi: No module named pip__main__; \'pip\' is a package and cannot be directly executed

When I type in to

4条回答
  •  生来不讨喜
    2020-12-11 17:25

    I had the same problem. I found that an old pip directory was left over from a python 2.7 install, at C:\Users\my-username\pip. This was causing python to try to load pip from there and fail.

    I removed that directory and my error has just become No module named pip.

    I haven't solved the problem yet, but I'm working through it at http://bugs.python.org/issue29586

提交回复
热议问题