pratik shirbhate
pratik shirbhate

Reputation: 41

bash: cookiecutter: command not found (cookiecutter installed using conda)

I have installed python cookiecutter using conda:

conda config --add channels conda-forge
conda install coockiecutter

In anaconda prompt "cookiecutter --version" shows "1.6.0 from d:\users\username\appdata\local\continuum\anaconda3\lib\site-packages.

Upon running cookiecutter command in git bash and it gives an error "bash: cookiecutter: command not found".

I have already added the path where cookiecutter is installed in windows environment variable "path".
Could you please suggest me how to resolve this issue?

Upvotes: 2

Views: 3171

Answers (2)

Kriti Pawar
Kriti Pawar

Reputation: 860

Your spelling for cookiecutter is wrong. Please check that

Try:

sudo apt-get install cookiecutter

If you are using Mac. you can also do:

brew install cookiecutter

Using conda:

conda install -c conda-forge cookiecutter

Upvotes: 0

VonC
VonC

Reputation: 1324258

I have already added the path where cookiecutter is installed in windows environment variable "path"

Then make sure to open a new CMD session that will inherit your PATH.

Before typing "bash", check the command is accessible with:

where cookiecutter

Then type "bash" and go on with your installation process.

As the OP pratik shirbhate mentions in the comments:

there was a correction in the directory path and I could capture that with where command

Upvotes: 1

Related Questions