简体   繁体   English

无法使用 pipx 安装 brownie

[英]Unable to install brownie using pipx

This is what i got after runing the command pipx install eth-brownie这是我运行命令 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:在使用 pip 安装 cytoolz 这就是我得到的:

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.我看到还有其他方法可以安装 brownie,但我不明白如何创建虚拟环境和做其他事情。 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 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.您也可以尝试先安装 Cython,使用pip install Cython ,看看它是否解决了问题。

I used the github installation method and it worked for me, these are the commands that I used on VSCode terminal.我使用了 github 安装方法,它对我有用,这些是我在 VSCode 终端上使用的命令。 The last line can be python3 or python based on your setup.根据您的设置,最后一行可以是 python3 或 python。

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.我已经通过安装 pipx、pip、cython、cytoolz 尝试了其他安装方法,但它们都没有工作,并且给了我不同的错误。

It's the problem of pipx and it's still possible to install it this way.pipx的问题,这样安装还是可以的。 See my answer to another same question: https://stackoverflow.com/a/70397128/13389142请参阅我对另一个相同问题的回答: https://stackoverflow.com/a/70397128/13389142

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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