Ket*_*eto 4 python visual-studio-code pipenv
Pipenv 已安装,因为我可以运行
$ pipenv --version
pipenv, version 2018.11.26
Run Code Online (Sandbox Code Playgroud)
但是,在 VSCode 中打开一个包含 的项目文件夹Pipfile,VSCode 会抱怨:
Workspace contains pipfile but attempt to run 'pipenv --venv' failed
with 'spawn pipenv ENOENT'. Make sure pipenv is on the PATH
Run Code Online (Sandbox Code Playgroud)
在您的用户设置(或工作区设置)上设置:
"python.pipenvPath": "/path/to/pipenv"
Run Code Online (Sandbox Code Playgroud)
即使 Pipenv 在您的PATH正确位置,您也必须明确地执行此操作。请参阅vscode-python#2139,它激发了添加python.pipenvPath到设置的原因。
| 归档时间: |
|
| 查看次数: |
1546 次 |
| 最近记录: |