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
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
Installing python3-pip fixed the issue for me.
apt-get install python3-pip
(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.
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.
try Ctrl+Shift+P then type
Python: Select Interpreter
and select the python version.
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.