Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookiecutter installation problem #412

Open
Idelsohn opened this issue Jan 1, 2025 · 2 comments
Open

Cookiecutter installation problem #412

Idelsohn opened this issue Jan 1, 2025 · 2 comments

Comments

@Idelsohn
Copy link

Idelsohn commented Jan 1, 2025

I am trying to download the cookiecutter structure onto vs code in order to arrange my project into a well defined structure. But I keep getting an error.
I managed to install the Cookie-cutter package itself (I used the - pip install cookiecutter-data-science). But right after that when I am trying to use commands like ccds/cookiecutter in order to create the project itself I get the following error -
ccds : The term 'ccds' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1

  • ccds
  •   + CategoryInfo          : ObjectNotFound: (ccds:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

How can I solve it?

@GatlenCulp
Copy link

Not a maintainer but it seems the ccds executable is not in your PATH, which PowerShell uses to locate commands. To check, run:

$Env:PATH

If the directory containing ccds isn’t listed, that’s likely the issue.


Steps to Resolve

  1. Run Directly with Python

    python -m pip install cookiecutter-data-science
    python -m ccds
  2. Activate Virtual Environment (if applicable)

    .\venv\Scripts\activate
    ccds
  3. Add to PATH
    Locate the Scripts folder for your Python installation and add it to PATH. Common paths:

    • Global: C:\PythonXX\Scripts
    • User: C:\Users\<YourUsername>\AppData\Roaming\Python\PythonXX\Scripts

@isms
Copy link
Contributor

isms commented Jan 8, 2025

@Idelsohn Did that fix your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants