[英]bash: cookiecutter: command not found (cookiecutter installed using conda)
我已經使用 conda 安裝了 python cookiecutter:
conda config --add channels conda-forge
conda install coockiecutter
在 anaconda 提示中,“ cookiecutter --version
”顯示“1.6.0 from d:\\users\\username\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages
。
在git bash
運行cookiecutter
命令時,它會給出錯誤“ bash: cookiecutter: command not found
”。
我已經在windows環境變量“path”中添加了cookiecutter
的安裝路徑。
你能建議我如何解決這個問題嗎?
我已經在windows環境變量“path”中添加了cookiecutter的安裝路徑
然后確保打開一個新的CMD 會話,它將繼承您的 PATH。
在輸入“bash”之前,檢查命令是否可以訪問:
where cookiecutter
然后輸入“ bash
”並繼續您的安裝過程。
正如OP pratik shirbhate 在評論中提到的:
目錄路徑中有一個更正,我可以使用
where
命令捕獲它
你對 cookiecutter 的拼寫是錯誤的。 請檢查
嘗試:
sudo apt-get install cookiecutter
如果您使用的是 Mac。 你也可以這樣做:
brew install cookiecutter
使用康達:
conda install -c conda-forge cookiecutter
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.