Hello,
I hope that this finds you well.
one of my mate (using windows) has an issue with kedro
not being recognized as a cli.
She is using anaconda prompt, created a virtual environment, installed kedro (and other deps), but when running kedro run
(from the activated conda env) she gets
'kedro' is not recognized as an internal or external command, operable program or batch file.Nb: if we try to `import kedro` using that same conda env, that works properly.
Hi Cyril,
You can try following options:
1. Ensure the Conda Environment is Activated before running any Kedro commands
2. Try to reinstall Kedro using pip
Also try this
Check if Kedro's CLI is in the Scripts Directory, Navigate to your environment's Scripts
directory and verify that kedro.exe
exists.
ok, but actually, import kedro
works in the env. So, installation seems ok, except for the cli part which is not recognized
Sometimes, activating a Conda environment does not correctly add the Scripts
directory to the PATH.
Check the Scripts
directory and if its not there try uninstalling Kedro from your conda env and reinstall again with pip.
here I have the conda env name kedro
, so if kedro
is not found as a command, check if the bin
or Script
has a kedro.exe
.
Also maybe try different the normal cmd terminal (and close the terminal and re-open, sometime maybe it fails to add things to PATH
), I never use the Anaconda prompt so I don't know what does it actually do.