A problem to run mkdocs

1542 views
Skip to first unread message

Mauro Baldi

unread,
Sep 26, 2016, 10:04:15 AM9/26/16
to MkDocs
Hello,

   I am very fresh in the use of Markdown.
I have just installed Python on Windows with the help of chocolatety and pip and then I installed Mardwon as explained in the guide online through the command

pip install mkdocs

However, when I run a command like

mkdocs --version,

an error message tells me that the command "mkdocs" is not recognized, while the installation correctly took place.
Can anybody help me, please?

Waylan Limberg

unread,
Sep 27, 2016, 3:27:11 PM9/27/16
to MkDocs
Mauro,

This is a known problem with Python on Windows. An update to the docs is coming which will clear this up a bit. Basically you need to add the "Scripts" directory to your PATH environment variable. If you are uncomfortable editing environment variables, you can use `python -m mkdocs` as the command.

Waylan

Waylan Limberg

unread,
Sep 27, 2016, 8:50:30 PM9/27/16
to MkDocs
I just spent some more time improving the docs. You can preview the updates here:


Hope that helps.

Waylan

harmony...@gmail.com

unread,
Mar 6, 2017, 12:35:49 AM3/6/17
to MkDocs
Hi Waylan,

I am running Python/MKDocs on Windows and so far so good by following your excellent instructions..  I have created the my-project folder and it has the 3 list files inside, docs (w. Index.md), python and mkdocs.yml, but I cannot run the server command - see below - that launches the internal server. It keeps giving me error messages. I have tried everything.

```bash
$ mkdocs serve
INFO    -  Building documentation...
INFO    -  Cleaning site directory
[I 160402 15:50:43 server:271] Serving on http://127.0.0.1:8000
[I 160402 15:50:43 handlers:58] Start watching changes
[I 160402 15:50:43 handlers:60] Start detecting changes
```

So am stuck. Files are in this directory C:\Users\xxxxxx\my-project

Thanks for any help, -Harmony-dweller

harmony...@gmail.com

unread,
Mar 6, 2017, 12:37:06 AM3/6/17
to MkDocs

Waylan Limberg

unread,
Mar 7, 2017, 5:38:07 PM3/7/17
to MkDocs
I don't see any "error message" there. Based on that output everything is working as it should. Have you opened your browser and tried to visit http://127.0.0.1:8000?

harmony...@gmail.com

unread,
Mar 7, 2017, 10:19:53 PM3/7/17
to MkDocs
When I try to run serve cmd 

C:\Users\xxxxxxx\my-project>serve

 I get this error msg:

'serve' is not recognized as an internal or external command,
operable program or batch file.

Same thing happens with

C:\Users\xxxxxxx\my-project>python -m serve
'python' is not recognized as an internal or external command,
operable program or batch file.

I am in the right folder.  Any idea what's wrong?

Waylan Limberg

unread,
Mar 9, 2017, 4:50:36 PM3/9/17
to MkDocs
The command is `mkdocs serve` not just `serve`.

Waylan
Reply all
Reply to author
Forward
0 new messages