0

I am trying to install Kedro but I am getting this error. I know most of the time this error arises because kedro is not in my PATH. I tried adding the file path to my PATH and still getting the same error. When I run:

pip show kedro

output:

Name: kedro Version: 0.15.5 Summary: Kedro helps you build production-ready data and analytics pipelines Home-page: https://github.com/quantumblacklabs/kedro Author: QuantumBlack Labs Author-email: None License: Apache Software License (Apache 2.0) Location: c:\users\vince\appdata\roaming\python\python36\site-packages Requires: pyarrow, anyconfig, PyYAML, requests, SQLAlchemy, tables, xlrd, cookiecutter, fsspec, pip-tools, toposort, s3fs, pandas, python-json-logger, xlsxwriter, click Required-by:

I get the file location, and that is what I was trying to add to my path. I am assuming I am using the wrong location, but I am not sure which file location to add to my PATH.

What I added to my path: c:\users\vince\appdata\roaming\python\python36\site-packages

2 Answers2

1

To turn the comments into an answer:

With Python CLI tools on Windows, you need to make sure that your Python Scripts directory is in your PATH. The location of that directory depends on what version of Python you have installed, and you can look it up for your specific version. Common locations include (replace Python37 with your version):

  • C:\Program Files\Python37\Scripts
  • C:\Users\Username\AppData\Roaming\Python\Python37\Scripts

NB: It should be the entire directory that is added to your PATH, not the path to the kedroexecutable itself.

Alternatively, you can run kedro as a module by running python -m kedro.

Zain Patel
  • 983
  • 5
  • 14
0

Can you try adding the path outputted by the command which kedro instead? Did the package install successfully after you did pip install kedro?

  • I tried to run 'which kedro' and it returned a long statement that basically said it could not find it. If I run 'pip install kedro' it tells me that all requirements are already satisfied. – vincenzo Scotto Di Uccio Jan 28 '20 at 15:07
  • Try running `which pip`, and `which python` do the directories match up to the environment you are trying to use. I have seen similar issues when environments get half activated/deactivated. Like some others have said, its likely a path issue, but this may help figure out where the path went wrong. – Waylon Walker Feb 02 '20 at 15:32