kynan / nbstripout

strip output from Jupyter and IPython notebooks
Other
1.19k stars 94 forks source link

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

Closed hlwestberg closed 1 year ago

hlwestberg commented 1 year ago

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

Trying to install nbstripout on windows. pip install works fine, but nbstripout --install does not. I keep getting the error above. Python and git are in my PATH variable, and I can run git commands from the command line inside the repo. When I run pip list, I see nbstripout listed, so I know it's downloaded.

kynan commented 1 year ago

When you pip install nbstripout, nbstripout is installed as an entrypoint script. I have no idea where those live on Windows and whether that directory is on your PATH. I assume not, which is why you see the error.

You can either add that directory to your PATH or simply run python -m nbstripout instead of nbstripout.

hlwestberg commented 1 year ago

Got it, thanks!