![](/img/trans.png)
[英]In VS Code, I have autopep8 installed, the path is ok, I can use it in the terminal but can't locate it in the Command Palette
[英]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.