VSCode:所选环境中没有可用的Pip安装程序

VSCode:所选环境中没有可用的Pip安装程序

然后我尝试格式化我的代码,VSCode说没有安装autopep8,可以通过Pip安装 .
但是,当我尝试通过Pip安装时,它会说 There is no Pip installer available in the selected environment .

在Ubuntu16.04上,我在vscode中使用Python3

apt-get install python3-pip

解决了我的问题 .

那是因为我发现:在我的终端下,我键入 pip3 -V

pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

[Haima的博客] http://www.cnblogs.com/haima/
原文地址:https://www.cnblogs.com/haima/p/15488606.html