LoginSignup
4

More than 1 year has passed since last update.

VS Codeで「conda : 用語 'conda' は、コマンドレット、関数、スクリプト ファイル、または操作可能なプログラムの名前として認識されません。名前が正しく記述されていることを確認し、パスが含まれている場合はその パスが正しいことを確認してから、再試行してください。」

Posted at

エラー

Python用のエディタとしてVS Codeを導入しようとした際、ターミナルを開くと以下のエラーが発生
vscode_error.png

対策

  1. 設定ファイルをJSONで開く(Ctrl+,で設定を開いた後、図のボタンをクリック)
設定(JSON)を開く
  1. 以下をsetting.jsonに追記
setting.json
    ...,
    "terminal.integrated.defaultProfile.windows": "Command Prompt",
    "terminal.integrated.profiles.windows": {
        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell"
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [
                "/k",
                "chcp",
                "65001"
            ],
            "icon": "terminal-cmd"
        },
        "Git Bash": {
            "source": "Git Bash"
        }
    },
    "terminal.integrated.fontSize": 17
}

解決

無事にcondaコマンドが通った
no_error.png

参考

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4