Home:ALL Converter>VSCode zsh: command not found: pipenv after restarting

VSCode zsh: command not found: pipenv after restarting

Ask Time:2020-05-22T23:49:08         Author:Makoto Miyazaki

Json Formatter

In VSCode I'm editing .py files using virtual environment I created with pipenv. My project folder contains Pipfile and Pipfile.lock. Before I was able to execute my .py files properly with this virtual environment, with a command pipenv run.... However when I closed and restarted VSCode, I can no longer execute the files. The error I'm encountering is:

>>> pipenv run python python_codes/prepare_data/prepare_data.py    
zsh: command not found: pipenv

tu

I vaguely remember that before when it was working, the selected shell was not zsh... But I don't remember which one was selected. And i cannot select other shells for some reason(there is only zsh option). Anybody has an idea about how to solve this? I'm a noob to VSCode.

VSCode Version: 1.45.1

Author:Makoto Miyazaki,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/61958877/vscode-zsh-command-not-found-pipenv-after-restarting
yy