From 9b97187e138a16ea8b5937d68c802efd12467664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tolunay=20D=C3=BCndar?= <67644521+tolunaydundar@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:21:35 +0300 Subject: [PATCH] Add an alternative installation command for Windows Using "pip install thefuck" on Windows works, but the app itself does not. Using "fuck" command on PowerShell/Terminal results with "ModuleNotFoundError: No module named 'imp'". This alternative installation method fixes that error. See: https://github.com/nvbn/thefuck/issues/1434#issuecomment-2108618450 Thanks to @danthe1st --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 81820354..ff611a49 100644 --- a/README.md +++ b/README.md @@ -142,12 +142,18 @@ On Arch based systems, install *The Fuck* with the following command: sudo pacman -S thefuck ``` -On other systems, install *The Fuck* by using `pip`: +On other systems (including Windows), install *The Fuck* by using `pip`: ```bash pip install thefuck ``` +On Windows, if you encounter the error "ModuleNotFoundError: No module named 'imp'" when running *The Fuck*, please try the following: +```bash +pip uninstall thefuck +pip install https://github.com/nvbn/thefuck/archive/master.zip +``` + [Alternatively, you may use an OS package manager (OS X, Ubuntu, Arch).](https://github.com/nvbn/thefuck/wiki/Installation) #