【发布时间】:2020-08-08 18:01:12
【问题描述】:
(这里的第一个问题。)
我在 Windows 上使用 vscode 在 python 中编程。 我的 Windows 用户名中有空格,所以我必须在大多数路径中使用双引号,并相应地更改了我的 pythonPath 和 fileName 路径。但是当提示我安装软件包(pylint 等)时,由于路径中的空格,终端会显示错误。
我一直在搜索扩展路径的设置,如果这是我需要修改的,但找不到。
这是终端响应,当我点击“Linter pylint not installed”弹出窗口上的安装时:
(venv)C:\PythonScripts\YTHistory>c:/PythonScripts/YTHistory/venv/Scripts/python.exe c:\Users\firstName lastName\.vscode\extensions\ms-python.python-2020.4.76186\pythonFiles\pyvsc-run-isolated.py pip install -U pylint
C:\Users\firstName lastName\AppData\Local\Programs\Python\Python38\python.exe: can't open file 'c:\Users\firstName': [Errno 2] No
such file or directory
(我可以通过在第二条路径后加上双引号来使其工作,但我想弄清楚如何才能让它消失)
【问题讨论】:
标签: python visual-studio-code vscode-settings pylint