繁体   English   中英

如果我已经安装了 python 扩展,如何将 VS Code 中的路径更改为扩展,以及 autopep8 的正确路径是什么?

[英]How can I change the path in VS Code to the extension and what is the correct path to autopep8 if I already installed the python extension?

尝试为 VS Code 安装模块“ autopep8 ”时收到此错误:

rrgut@DESKTOP-NQJ4S14 MINGW64 ~/Documents/Raymond/HelloWorld
$ C:/Users/rrgut/AppData/Local/Programs/Python/Python39/python.exe c:\Users\rrgut\.vscode\extensions\ms-python.python-2020.9.114305\pythonFiles\pyvsc-run-isolated.py pip install -U autopep8 --user
C:\Users\rrgut\AppData\Local\Programs\Python\Python39\python.exe: can't open file 'C:\Users\rrgut\Documents\Raymond\HelloWorld\Usersrrgut.vscodeextensionsms-python.python-2020.9.114305pythonFilespyvsc-run-isolated.py': [Errno 2] No such file or directory

Python 扩展支持我们在VSCode 中使用Python,但是我们安装的模块不在python 扩展的路径中。

我们在当前VSCode 环境中使用模块“ autopep8 ”。 在 VSCode 终端中使用pip安装:

在此处输入图片说明

查看:

在此处输入图片说明

在命令行中输入where.exe autopep8并将该路径复制到Autopep8 Path

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM