missionpinball / mpf

Mission Pinball Framework: Open source software to run a real pinball machine.
http://missionpinball.org
MIT License
216 stars 142 forks source link

No Module Named Pip #1665

Open PinballMaker opened 1 year ago

PinballMaker commented 1 year ago

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.

Pyrrvs commented 1 year ago

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:

That worked for me.