autopep8 not working in ubuntu 17.10
See original GitHub issueFrom @JensMadsen on November 6, 2017 11:6
Environment data
VS Code version: Version 1.17.2
Python Extension version:
Python Version: Python 3.6.3
OS and version: ubuntu 17.10
Actual behavior
format document -> error message “Formatter yapf is not installed” or “Formatter autopep8 is not installed” -> after installation
/usr/bin/python -m pip install autopep8
Collecting autopep8
Collecting pycodestyle>=2.3 (from autopep8)
Using cached pycodestyle-2.3.1-py2.py3-none-any.whl
Installing collected packages: pycodestyle, autopep8
Successfully installed autopep8-1.3.3 pycodestyle-2.3.1
still does not work. I have removed vs code and installed i again. Still no luck
Expected behavior
Steps to reproduce:
Logs
Output from Python
output panel
Output from Console window
(Help->Developer Tools menu)
Copied from original issue: DonJayamanne/pythonVSCode#1371
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
Atom editor : autopep8 is not working and no error message at ...
Step1:- First of all, you need to make sure that autopep8 module is installed in your PC, You can check this by using...
Read more >How to Install python-autopep8 software package in Ubuntu ...
python-autopep8 software package provides tool that automatically formats Python code to conform to PEP 8, you can install in your Ubuntu 17.04 (Zesty ......
Read more >python3-autopep8_1.5-1_all.deb Ubuntu 20.04 LTS Download
It uses the pep8 utility to determine what parts of the code needs to be formatted. autopep8 is capable of fixing most of...
Read more >Artful (17.10) : autopep8 package : Ubuntu - Launchpad
There is no current release of this source package in The Artful Aardvark. You can still report bugs, make translations, and so on,...
Read more >Editor integration - Black 22.12.0 documentation
On Windows / Linux / BSD: ... :Black to format the entire file (ranges not supported); ... On Ubuntu 17.10 Vim comes with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same problem when I would get a “Formatter autopep8 is not installed” error even though autopep8 was installed. The solution in my case was as simple as changing autopep8 path
"python.formatting.autopep8Path": "/home/username/.local/bin/autopep8"
Does running
/home/yolen/scicomp/anaconda3/bin/python
and thenimport pip
succeed?