首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >高山蟒libcst安装中的锈蚀编译错误

高山蟒libcst安装中的锈蚀编译错误
EN

Stack Overflow用户
提问于 2022-09-18 08:58:15
回答 1查看 105关注 0票数 0

试图使用高山- python的3.7.9映像在高寒linux上安装python模块

无法找到解决以下问题的任何解决办法,任何援助都会有很大帮助。

代码语言:javascript
运行
复制
          error[E0658]: or-patterns syntax is experimental
6908         --> libcst/src/tokenizer/core/mod.rs:944:25
6909          |
6910      944 | /                         '\n'
6911      945 | |                         | '\\'
6912      946 | |                         | '\''
6913      947 | |                         | '"'
6914      ...   |
6915      958 | |                         | 'u'
6916      959 | |                         | 'U',
6917          | |_____________________________^
6918          |
6919          = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
6920      
6921      error[E0658]: or-patterns syntax is experimental
6922         --> libcst/src/tokenizer/core/mod.rs:976:33
6923          |
6924      976 |                     if let Some('"' | '\'') = self.text_pos.peek() {
6925          |                                 ^^^^^^^^^^
6926          |
6927          = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
6928      
6929      error[E0658]: or-patterns syntax is experimental
6930          --> libcst/src/parser/grammar.rs:3203:14
6931           |
6932      3203 |         e @ (Expression::Integer(_) | Expression::Float(_)) => Ok(e),
6933           |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6934           |
6935           = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
6936      
6937      error[E0658]: use of unstable library feature 'split_inclusive'
6938        --> libcst/src/tokenizer/whitespace_parser.rs:84:26
6939         |
6940      84 |             lines: input.split_inclusive(default_newline).collect(),
6941         |                          ^^^^^^^^^^^^^^^
6942         |
6943         = note: see issue #72360 <https://github.com/rust-lang/rust/issues/72360> for more information
6944      
6945      error: aborting due to 4 previous errors
6946      
6947      For more information about this error, try `rustc --explain E0658`.
6948      error: could not compile `libcst`.
6949      
6950      Caused by:
6953      error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path native/libcst/Cargo.toml --release -v --features pyo3/extension-module -- --crate-type cdylib` failed with code 101
6954      [end of output]
6955  
6956  note: This error originates from a subprocess, and is likely not a problem with pip.
6957  ERROR: Failed building wheel for libcst
EN

Stack Overflow用户

发布于 2022-09-18 19:53:37

“使用不稳定库特性”和“语法是试验性的”表示您正在使用比此程序所需的版本更早的Rust编译器。

or_patterns was stabilized in Rust 1.53split_inclusive was stabilized in Rust 1.51 (查看方法条目右侧的版本号)。

您将需要安装锈蚀1.53或更高版本。现在,您使用的版本已经超过一年了。

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73761350

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档