full-blockchain-solidity-course-py
full-blockchain-solidity-course-py copied to clipboard
Brownie issue
I have followed all the install guidelines diligently but when I try to type brownie --version it gives me the error message seen above. I believe this may have something to do with the pathing but any assistance that I could get regarding this issue would be greatly appreciated
I had this same issue did you install using pipx
or pip
? If you installed using pip like I did you might have to set brownie to your $PATH variable in bash or zsh. Once installed to $PATH you'll be able to type the above command without issue.
C:\Users\my_username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts
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 ( 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 typingbrownie
Hey WillStansil, I was running into this issue as well because I am on Windows. I recommend going through this guide: https://medium.com/@cromewar/how-to-setup-windows-10-11-for-smart-contract-development-and-brownie-e7d8d13555b3 .
It walks you through how to install and use Linux on your windows machine, and it fixes pretty much all of these file path issues!
Hey oliveruf42, I was installing Brownie through pip, i am not able to see this PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0 file in package folder or I have to add this PATH "C:\Users\userName\AppData\Roaming\Python\Python39\Scripts"
@Nagesh2189 downgrade your python version to 3.10