Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 安装web3[tester]时出错:为blake2b py构建控制盘失败_Python_Macos_Error Handling_Rust Cargo_Web3 - Fatal编程技术网

Python 安装web3[tester]时出错:为blake2b py构建控制盘失败

Python 安装web3[tester]时出错:为blake2b py构建控制盘失败,python,macos,error-handling,rust-cargo,web3,Python,Macos,Error Handling,Rust Cargo,Web3,我正试图使用pip install-U web3[tester]安装web3测试仪,但总是出现此错误 Pip和setuptools都在其当前版本上 完全错误: Building wheels for collected packages: blake2b-py Building wheel for blake2b-py (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /Libra

我正试图使用
pip install-U web3[tester]
安装web3测试仪,但总是出现此错误

Pip和setuptools都在其当前版本上

完全错误:

Building wheels for collected packages: blake2b-py
  Building wheel for blake2b-py (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/rf/h_h1jw411_l1d366hm2pybm00000gn/T/tmpigyl8c27
       cwd: /private/var/folders/rf/h_h1jw411_l1d366hm2pybm00000gn/T/pip-install-yu97ljpj/blake2b-py_61e5c1e928bf4c3fa77c17397812b60f
  Complete output (20 lines):
     Compiling proc-macro2 v1.0.24
     Compiling unicode-xid v0.2.1
     Compiling syn v1.0.58
     Compiling proc-macro-hack v0.5.19
     Compiling memchr v2.3.4
     Compiling serde_derive v1.0.118
     Compiling serde v1.0.118
     Compiling ryu v1.0.5
     Compiling lazy_static v1.4.0
     Compiling serde_json v1.0.61
  error: could not compile `ryu`
  
  To learn more, run the command again with --verbose.
  warning: build failed, waiting for other jobs to finish...
  error: build failed
  
stderr thread 'main' panicked at 'Error: pyo3 requires a nightly or dev version of Rust.'

You have to install a nightly or dev version of Rust (do you have rust installed at all ?)

EDIT You can install rust nightly on macOS with following commands in the shell:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default nightly
为收集的包构建控制盘:blake2b py
blake2b py(PEP 517)的建筑车轮。。。错误
错误:命令出错,退出状态为1:
命令:/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9/lib/Versions/3.9/lib/python3.9/site-packages/pip//u vendor/pep517//u in_process.py build\u wheel/var/folders/rf/h_h1jw411\u l1d366hm2pybm0000gn/T/tmpigyl8c27
cwd:/private/var/folders/rf/h_h1jw411_l1d366hm2pybm00000gn/T/pip-install-yu97ljpj/blake2b-py_61e5c1e928bf4c3fa77c17397812b60f
完整输出(20行):
编译proc-macro2 v1.0.24
编译unicode xid v0.2.1
编译syn v1.0.58
编译过程宏hack v0.5.19
编译memchr v2.3.4
编译serde_版本1.0.118
编译serde v1.0.118
编译Ryuv1.0.5
编译lazy_静态v1.4.0
编译serde_json v1.0.61
错误:无法编译'ryu'`
要了解更多信息,请使用--verbose再次运行该命令。
警告:生成失败,正在等待其他作业完成。。。
错误:生成失败
stderr线程“main”在“Error:pyo3需要夜间或开发版本的Rust”时惊慌失措

您必须安装Rust的夜间版本或开发版本(是否安装了Rust?)

编辑 您可以在shell中使用以下命令在macOS上每晚安装rust:

curl--proto'=https'--tlsv1.2-sSfhttps://sh.rustup.rs |嘘
每晚都会生锈

>要了解更多信息,请使用--verbose再次运行该命令。按照程序的建议去做就行了。(并将输出添加到您的帖子中!)我确实更新了它:)