python新手,并尝试在本地计算机上进行设置。我正在尝试安装pylint和autopep8(根据vs code的弹出建议),但当我单击“安装”时,遇到以下错误:
PS D:\Practice\PythonAutomation> & "D:/Visual Studio/Python37_64/python.exe" c:\Users\Andy stav\.vscode\extensions\ms-python.python-2020.4.76186\pythonFiles\pyvsc-run-isolated.py pip install -U pylint --user
D:\Visual Studio\Python37_64\python.exe: can't open file 'c:\Users\Andy': [Errno 2] No such file or directory
PS D:\Practice\PythonAutomation> & "D:/Visual Studio/Python37_64/python.exe" c:\Users\Andy stav \.vscode\extensions\ms-python.python-2020.4.76186\pythonFiles\pyvsc-run-isolated.py pip install -U autopep8 --user
D:\Visual Studio\Python37_64\python.exe: can't open file 'c:\Users\Andy': [Errno 2] No such file or directory
PS D:\Practice\PythonAutomation>
不知道为什么会这样?有人能提供一些建议吗
安迪
您可以通过添加额外的反斜杠来解决此问题。请注意,在您的示例中,如何为“Andystav”自动添加空格
为了能够在VSCode建议之后安装
autopep8
,我必须运行命令手动将反斜杠(\
)更改为斜杠(/
)我的终端使用
Git Bash
shell,请记住您的路径可能不同之前:
之后:
不幸的是,您遇到了上一个版本中出现的bug。我们正在https://github.com/microsoft/vscode-python/issues/11449跟踪它
相关问题 更多 >
编程相关推荐