jimporter / mike

Manage multiple versions of your MkDocs-powered documentation via Git
BSD 3-Clause "New" or "Revised" License
528 stars 47 forks source link

`mike` command not found on windows #104

Closed dazinator closed 2 years ago

dazinator commented 2 years ago

I've just installed mike using pip install mike and it succeed. However opening a new terminal session, and trying out the mike cli, the command cannot be found.

I installed mkdocs itself in the same way (via pip) and mkdocs commands work fine.

I am on windows 11.

I am guessing something about the install doesn't add the mike cli tool directory to the windows PATH? I am not that familiar with the python tool chain, or pip packages and how they work so I am looking for ideas.

dazinator commented 2 years ago

So I am guessing that for mike to become an executable command on windows, after doing pip install mike there should be a file in python install "scripts" folder. I can see "mkdocs" and others have created exe's there. However one wasn't created for mike.

image

dazinator commented 2 years ago

Ok.. I fixed this by opening a command prompt as admin and running:

pip install --force-reinstall mike

The mike.exe is now in my scripts folder. Not sure what happened there.