thefuck icon indicating copy to clipboard operation
thefuck copied to clipboard

No module named 'thefuck'

Open JamesLiAndroid opened this issue 7 years ago • 6 comments

When I install using the following commands, the terminal say:

File "/home/test/.local/bin/fuck", line 7, in from thefuck.not_configured import main ImportError: No module named 'thefuck'

I don't know how to do at next, so I create the issue.

OS:elementary os 0.4 using bash

JamesLiAndroid avatar May 07 '17 07:05 JamesLiAndroid

I have a very similar issue:

Traceback (most recent call last):
  File "/usr/local/bin/thefuck", line 7, in <module>
    from thefuck.main import main
ImportError: No module named 'thefuck'

Fastjur avatar May 13 '17 18:05 Fastjur

Looks like we're all having this issue.

grepsedawk avatar May 25 '17 18:05 grepsedawk

Try to install thefuck globally:

pip install thefuck

nvbn avatar May 29 '17 08:05 nvbn

So. For people having this issue. For me the fix was that I had setup another python version as default using update-alternatives. Make sure you use the correct python version.

Fastjur avatar May 29 '17 08:05 Fastjur

So. For people having this issue. For me the fix was that I had setup another python version as default using update-alternatives. Make sure you use the correct python version.

Exactly, I did the same thing then this error occurred.

shinux avatar Apr 15 '20 06:04 shinux

What is the latest python version supported by thefuck then? In the requirements it says 3.5+ and I have 3.12.0b4.

JoanComasFdz avatar Nov 29 '23 08:11 JoanComasFdz