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

前端 未结 14 1935
耶瑟儿~
耶瑟儿~ 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

    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.

提交回复
热议问题