Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Module Named Pip #1665

Open
PinballMaker opened this issue Nov 22, 2022 · 1 comment
Open

No Module Named Pip #1665

PinballMaker opened this issue Nov 22, 2022 · 1 comment

Comments

@PinballMaker
Copy link

PinballMaker commented Nov 22, 2022

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
Copy link

Pyrrvs commented May 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants