VSCode: There is no Pip installer available in the selected environment

前端 未结 14 1939
耶瑟儿~
耶瑟儿~ 2021-01-29 23:19

I\'m trying to run the autopep8 linter on a Python file in VSCode.

I\'ve followed the instructions here: https://code.visualstudio.com/docs/python/environments and selec

相关标签:
14条回答
  • 2021-01-30 00:08

    On Ubuntu16.04, I worked with Python3 in vscode and

    apt-get install python3-pip
    

    solves my problem.

    That's because I discover that: Under my terminal, I type the pip -V. It displays it's for Python2, not for Python3.

    0 讨论(0)
  • 2021-01-30 00:08

    I had the same problem today, none of the solutions helped me. Eventually, I figured it out myself.

    I'm posting this answer for people who are having this problem. Just go to your ./venv folder and you will find a .cfg file.

    Just make sure include-system-site-packages is set to true

    home = /usr/bin
    include-system-site-packages = true
    version = 3.8.5
    

    If it still doesn't work, just run sudo install python-3 pip once in the terminal.

    0 讨论(0)
提交回复
热议问题