【发布时间】:2020-07-01 21:25:11
【问题描述】:
我尝试在 vs 代码中安装 mypy 扩展,但它一直在下面显示此错误
C:\Users\Yourusername\Dev\django_project_boilerplate\env\Scripts\python.exe: can't open file 'c:UsersYourusername.vscodeextensionsms-python.python-2020.6.89148pythonFilespyvsc-run-isolated.py': [Errno 2] No such file or directory
(env)
然后我意识到终端正在从下面命令中的文件位置删除反斜杠,因为它是一个特殊字符
c:/Users/Yourusername/Dev/django_project_boilerplate/env/Scripts/python.exe c:\Users\Yourusername\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py pip install -U mypy
【问题讨论】:
标签: visual-studio-code terminal python-extensions