markbaas / atom-python-autopep8

MIT License
9 stars 6 forks source link

autopep8 is not working on Mac in Atom. I'm getting a red x at the bottom of the screen. #23

Open sballay8734 opened 5 years ago

sballay8734 commented 5 years ago

Hey I guys, I'm really hoping someone can help me out. I've been trying to figure this out for 2 days now and I've felt like punching my computer... so frustrated. It's certainly my fault but I don't know enough about it to troubleshoot.

I'm trying to use autopep8 in Atom on mac. I've installed autopep8 using sudo pip3 install autopep8 but the install path seems to be wrong. It's currently installed at /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages which I think is wrong. I know how to uninstall but I don't know how to choose the install location, nor do I know where it's supposed to be installed. I've tried pointing Atom to this directory under the settings for the autopep8 plugin but it has not worked. I've uninstalled and reinstalled more times than i can count, I've tried moving the files to a different directory, I've gone through all of the troubleshooting stuff I can find. I just have no idea what I'm supposed to do. I can provide any information needed to fix this problem, I just don't know what's needed. Please just let me know what I need to attach and I will get it. Thank you to anybody who can help me.

Winning117 commented 5 years ago

Atom uses pip, not pip3. pip install autopep8

YashKarthik commented 5 years ago

hey guys I'm facing the same issue on mac but i downloaded through the download button in the atom's settngs

YashKarthik commented 5 years ago

ya @sballay8734 @Winning117 is right i installed it with sudo install autopep8 and it worked.

Amertime commented 3 years ago

For my case on Windows, it's an admin access issue. I had to run the Powershell as administrator, and then "pip install autopep8". This made it install correctly in "c:\program files (x86)\python38-32\lib\site-packages" instead of under "C:\Users\XYZ\AppData\Roaming\Python\Python38\site-packages".