Skip to content

Instantly share code, notes, and snippets.

@Seasawher
Created September 17, 2023 13:27
Show Gist options
  • Save Seasawher/8f70e12db59f9d0e77b7034a573a36a6 to your computer and use it in GitHub Desktop.
Save Seasawher/8f70e12db59f9d0e77b7034a573a36a6 to your computer and use it in GitHub Desktop.
エラー「The term 'kaggle' is not recognized as a name of a cmdlet」

kaggle のAPIをインストールしようとしてエラー.

エラー内容

https://www.kaggle.com/docs/api に従って,pip install kaggle を実行.インストールはできているようで,pip show kaggle は成功する.

しかし,kaggle -h と打つと下記のエラー:

kaggle: The term 'kaggle' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

解決するために試したこと

公式の案内 に従って,pip uninstall kaggle を実行.(アンインストールまではしない)

%USERPROFILE%\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\scripts\kaggle.exe

がPATHであることを確認する.

末尾の kaggle.exe を取ったものをユーザ環境変数に追加したら,kaggle -h が通るようになった.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment