mpf icon indicating copy to clipboard operation
mpf copied to clipboard

No Module Named Pip

Open PinballMaker opened this issue 3 years ago • 1 comments

Hello,

I have been having issues with the installation of MPF and MPF-MC. I am on Windows 10, using Python 3.9.13 and am stuck at this command:

pipx inject mpf mpf-mc --pip-args="--pre" --verbose --include-deps --include-apps

When I check the error log I see this: “C:\Users\Me.local\pipx\venvs\mpf\Scripts\python.exe: No module named pip”

I have ensured the path, and had to use setx to get the pip commands earlier in the instructions to work. When I run the command previous to where I am stuck the CMD window says "'mpf' already seems to be installed, not modifying existing installation in [full path is printed].". However, when I try "pip uninstall mpf" it says that MPF does not appear to be installed.

I wouldn't be surprised if my environment is a bit of MPF spaghetti by now. I initially started with Python 3.11 but discovered an issue with the collections object. I've been trying to fix this for a while and have run so many commands that it’s possible figuring out how to get back to zero might help too.

PinballMaker avatar Nov 22 '22 16:11 PinballMaker

Had the exact same issue. Started with python 3.11 then rollback to python 3.9 and got the No module named pip issue.

I resolved it by:

  • uninstalling pipx with pip uninstall pipx
  • removing the local pipx folder (~\.local\pipx or in your case C:\Users\Me\.local\pipx\)
  • reinstalling pipx with pip install pipx and python -m pipx ensurepath
  • starting a new terminal session
  • reinstalling mpf with pipx install "mpf[cli]" --verbose --include-deps

That worked for me.

Pyrrvs avatar May 13 '23 10:05 Pyrrvs