Reputation: 2176
Pipenv is installed as I can run
$ pipenv --version
pipenv, version 2018.11.26
However, with a project folder open in VSCode containing a Pipfile
, VSCode complains:
Workspace contains pipfile but attempt to run 'pipenv --venv' failed
with 'spawn pipenv ENOENT'. Make sure pipenv is on the PATH
Upvotes: 4
Views: 2644
Reputation: 2176
On your user settings (or workspace settings) set:
"python.pipenvPath": "/path/to/pipenv"
You must do this explicitly even though Pipenv is in your PATH
properly. See vscode-python#2139 which motivated the reason to add python.pipenvPath
to settings.
Upvotes: 6