使用 pipx 问题安装 eth-brownie
Installing eth-brownie with pipx issue
嘿,所以我正在尝试使用以下命令通过 pipx 安装 eth-brownie:
pipx install eth-brownie
不幸的是,这给了我一条错误消息,我很难理解它。我知道我应该可以使用 pip 安装它,但是使用 pipx 可以让我自由使用 venv。无论如何我可以使用 pipx 来完成这项工作吗?以下是我的错误信息:
Traceback (most recent call last):
File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "c:\users\david\appdata\roaming\python\python310\scripts\pipx.exe\__main__.py", line 7, in <module>
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\main.py", line 779, in cli
return run_pipx_command(parsed_pipx_args)
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\main.py", line 202, in run_pipx_command
return commands.install(
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\commands\install.py", line 60, in install
venv.install_package(
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\venv.py", line 238, in install_package
subprocess_post_check_handle_pip_error(pip_process)
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\util.py", line 349, in subprocess_post_check_handle_pip_error
print(completed_process.stderr, file=pip_error_fh, end="")
File "C:\Python310\lib\encodings\cp1252.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>
好吧,不管你做什么,brownie 都不适用于 python 3.10.0 atm。我安装了 pyenv-win 来处理这个问题,最后将所有内容重新安装到与 eth-brownie 兼容的 python 3.9.9 版本中,一切正常。 运行 pip-install 再次对所有事情有点痛苦,但我想如果一切正常,最终还是值得的。祝所有遇到同样问题的人好运。
嘿,所以我正在尝试使用以下命令通过 pipx 安装 eth-brownie:
pipx install eth-brownie
不幸的是,这给了我一条错误消息,我很难理解它。我知道我应该可以使用 pip 安装它,但是使用 pipx 可以让我自由使用 venv。无论如何我可以使用 pipx 来完成这项工作吗?以下是我的错误信息:
Traceback (most recent call last):
File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "c:\users\david\appdata\roaming\python\python310\scripts\pipx.exe\__main__.py", line 7, in <module>
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\main.py", line 779, in cli
return run_pipx_command(parsed_pipx_args)
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\main.py", line 202, in run_pipx_command
return commands.install(
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\commands\install.py", line 60, in install
venv.install_package(
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\venv.py", line 238, in install_package
subprocess_post_check_handle_pip_error(pip_process)
File "C:\Users\david\AppData\Roaming\Python\Python310\site-packages\pipx\util.py", line 349, in subprocess_post_check_handle_pip_error
print(completed_process.stderr, file=pip_error_fh, end="")
File "C:\Python310\lib\encodings\cp1252.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>
好吧,不管你做什么,brownie 都不适用于 python 3.10.0 atm。我安装了 pyenv-win 来处理这个问题,最后将所有内容重新安装到与 eth-brownie 兼容的 python 3.9.9 版本中,一切正常。 运行 pip-install 再次对所有事情有点痛苦,但我想如果一切正常,最终还是值得的。祝所有遇到同样问题的人好运。