简体   繁体   中英

Unable to install brownie using pipx

This is what i got after runing the command pipx install eth-brownie

C:\Windows\system32>pipx install eth-brownie
Fatal error from pip prevented installation. 

pip failed to build package:
    cytoolz

Some possibly relevant errors from pip install:
    build\lib.win-amd64-3.10\cytoolz\functoolz.cp310-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120

Error installing eth-brownie.

On installing cytoolz using pip this is what I get:

C:\Windows\system32>pip install cytoolz
Requirement already satisfied: cytoolz in c:\users\goosa\appdata\local\programs\python\python310\lib\site-packages (0.11.2)
Requirement already satisfied: toolz>=0.8.0 in c:\users\goosa\appdata\local\programs\python\python310\lib\site-packages (from cytoolz) (0.11.1)

I see there are other ways to install brownie but I don't understand how to create a virtual environment and do other things. I don't know what else to do, please help.

You can check this link for the correct installation

https://chain.link/bootcamp/brownie-setup-instructions

you can also try installing Cython first with pip install Cython and see if it solves the problem.

I used the github installation method and it worked for me, these are the commands that I used on VSCode terminal. The last line can be python3 or python based on your setup.

git clone https://github.com/eth-brownie/brownie.git
cd brownie
python setup.py install

I already tried the other installation methods by installing pipx, pip, cython, cytoolz but none of them worked and was giving me different errors.

It's the problem of pipx and it's still possible to install it this way. See my answer to another same question: https://stackoverflow.com/a/70397128/13389142

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM