嘿,我正试图使用以下命令安装带有pipx的eth brownie:
pipx install eth-brownie
不幸的是,这给了我一个错误信息,我很难理解。我知道我应该能够使用pip安装它,但使用pipx让我可以自由地使用venv。有没有办法让我使用pipx来完成这项工作?以下是我的错误信息:
Traceback (most recent call last):
File "C:Python310librunpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:Python310librunpy.py", line 86, in _run_code
exec(code, run_globals)
File "c:usersdavidappdataroamingpythonpython310scriptspipx.exe__main__.py", line 7, in <module>
File "C:UsersdavidAppDataRoamingPythonPython310site-packagespipxmain.py", line 779, in cli
return run_pipx_command(parsed_pipx_args)
File "C:UsersdavidAppDataRoamingPythonPython310site-packagespipxmain.py", line 202, in run_pipx_command
return commands.install(
File "C:UsersdavidAppDataRoamingPythonPython310site-packagespipxcommandsinstall.py", line 60, in install
venv.install_package(
File "C:UsersdavidAppDataRoamingPythonPython310site-packagespipxvenv.py", line 238, in install_package
subprocess_post_check_handle_pip_error(pip_process)
File "C:UsersdavidAppDataRoamingPythonPython310site-packagespipxutil.py", line 349, in subprocess_post_check_handle_pip_error
print(completed_process.stderr, file=pip_error_fh, end="")
File "C:Python310libencodingscp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character 'u2502' in position 559: character maps to <undefined>
Welp发现,无论你做什么,布朗尼都不适用于python 3.10.0 atm。我安装了pyenv-win来处理这个问题,并最终将所有内容重新安装到与eth布朗尼兼容的python 3.9.9版本中,一切都正常。再次在所有设备上运行pip安装有点痛苦,但如果一切正常,我想这最终是值得的。祝所有有同样问题的人好运。