'Brownie Installed but not recognized
I've installed eth brownie with the command pip install eth-brownie
but when ever I type brownie, it says
The term 'brownie' 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:1
Solution 1:[1]
I had this problem also, when running "pip install eth-brownie" in the command line, I was given a warning that said
C:\Users\my_username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts
is not on the PATH.
You could try running pip uninstall eth-brownie
and re-installing pip install eth-brownie
to see which file you need to add to PATH.
Copy the file path it gives (should look similar to what I posted above)
To add this to path (on windows 10) type advanced system settings into the search bar, click view advanced systems settings, a window that says "system properties" should pop up, click environment variables..., in the next window that pops up (titled environment variables) click on path then click edit, a new window will pop up titled edit environment variable click new then paste the file path into a new line. Click ok and close all of your programs (if you don't close/restart your programs they will not be aware of the change).
When you open your IDE (visual studio code in my case) you should be able to run brownie by typing brownie
Solution 2:[2]
The following steps worked for me on Mac OS.
step1: uninstall eth-brownie "pip uninstall eth-brownie"
step2: re-install "pip install eth-brownie"
step3: Quit VS Code and Open the project again.
Solution 3:[3]
This at least causes a temp recognition of "Brownie":
$env:Path += ";C:\Users\<< username >>\.local\pipx\venvs\eth-brownie\Scripts"
This path will display too if you try to reinstall Brownie. Then add it to PATH variables.
Solution 4:[4]
using 'pip install eth-brownie' instead of 'pipx install eth-brownie' solved the problem for me.
Solution 5:[5]
I got zsh not recognize brownie command error, so i add the brownie executable into my PATH in .zshrc worked:
export PATH="/Users/{your_user_name}/.local/pipx/venvs/eth-brownie/bin:$PATH"
Not sure if this works for you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Tugay |
Solution 2 | Ajith Ahangama Vitharanalage |
Solution 3 | Mikhail Zakharov |
Solution 4 | UnknownBadboy |
Solution 5 | Argos |