pip install longbridge 安装不成功
longbridge 安装不成功 代码例子
davidchen@DaviddeMacBook-Pro ~ % pip install longbridge Collecting longbridge Using cached longbridge-0.2.77.tar.gz (329 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: longbridge Building wheel for longbridge (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for longbridge (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Running maturin pep517 build-wheel -i /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 --compatibility off
error: package litemap v0.7.5 cannot be built because it requires rustc 1.81 or newer, while the currently active rustc version is 1.76.0
Either upgrade to rustc 1.81 or newer, or use
cargo update [email protected] --precise ver
where ver is the latest version of litemap supporting rustc 1.76.0
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": cargo rustc --manifest-path Cargo.toml --message-format json --release --lib -- -C link-arg=-undefined -C link-arg=dynamic_lookup -C link-args=-Wl,-install_name,@rpath/longbridge.cpython-310-darwin.so
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.10 at /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/Library/Frameworks/Python.framework/Versions/3.10/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for longbridge Failed to build longbridge ERROR: Failed to build installable wheels for some pyproject.toml based projec
你的环境信息
- 操作系统: macOS
- 开发语言: Python
- SDK 版本号:
用 pip install longport,之前的 longbridge 不用了
由于没有活动,此问题已关闭。如果您仍遇到此问题,请打开一个新问题并附上此问题的链接。 This issue was closed due to inactivity. If you still encounter this issue, please open a new issue and link to this issue. Thank you.