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)