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

前端 未结 14 1938
耶瑟儿~
耶瑟儿~ 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-29 23:44

    On Ubuntu:

    Make sure, that you have Python and pip installed.

    Go to Settings, type python.py in search input. This should find Python Path settings.

    Remove this path (if it is currently setted), save. Exit Code and set this to current value.

    For me is /usr/bin/python3

    0 讨论(0)
  • 2021-01-29 23:45

    Installing python3-pip fixed the issue for me.

    apt-get install python3-pip
    
    0 讨论(0)
  • 2021-01-29 23:50

    (on mac)if you are using python3 but vscode told you pip was not installed , you could change python version on vscode bottom. And I guess you are using another terminal but not bash , vscode's default terminal is bash. Bash don't know you have install pip@2.

    0 讨论(0)
  • 2021-01-29 23:50

    For Windows system check the environment variable>System variables check the Path variable for the python path.(if not found set the path variable for python)

    Copy the path and paste under vscode>file>preferences>settings>python.pythonPath

    It worked for me.

    0 讨论(0)
  • 2021-01-29 23:51

    try Ctrl+Shift+P then type

    Python: Select Interpreter
    

    and select the python version.

    0 讨论(0)
  • 2021-01-29 23:54

    Man you can only change the interpreter.

    Go in (ctrl + shift + p), then type Python: Select Interpreter, this way you choose the version that your extension needs.

    This worked for me.

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