Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't run thefuck on powershell #1423

Open
Alptekinn opened this issue Nov 29, 2023 · 1 comment
Open

I can't run thefuck on powershell #1423

Alptekinn opened this issue Nov 29, 2023 · 1 comment

Comments

@Alptekinn
Copy link

I can't run thefuck on windows 10.
I installed it this way
pip install thefuck
and I try to
iex "$(thefuck --alias)"
Error like this

thefuck : The term 'thefuck' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:8

  • iex "$(thefuck --alias)"
    • CategoryInfo : ObjectNotFound: (thefuck:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException
    I also tried it with in my path

iex "$(C:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts\thefuck --alias)"

thefuck : The term 'thefuck' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:141

  • ... g]::IsNullOrWhiteSpace($history)) { $fuck = $(thefuck $args $ ...
  •                                                       ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (thefuck:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
@handsomepwy
Copy link

I am not sure, but I guess the full path attempt location is not correct, the .exe file shall be located under the "Scripts" folder of the installation folder of Python, which is the same level with pip.exe. I am using win10 also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants