繁体   English   中英

python setup.py egg_info" 失败,错误代码为 1

[英]python setup.py egg_info" failed with error code 1

当我运行命令pip install scrapy时,它显示此错误:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-sbbmgfjk/cryptography/

我尝试使用pip install --upgrade setuptools对其进行升级,但这似乎不起作用。 有什么建议么?

看来密码学包(截至今天)现在需要添加 setuptools-rust,它依赖于 Rust 和一组新的系统库来复制所有原始密码学调用。 这是一个主要的痛苦,并且 pip 对新 DEPS 的列表没有太大帮助!

嗯。

这是我必须构建的所有新垃圾的完整列表,以便在新系统上安装 ansible。 这是从我的 bash 历史中得出的,当时我通过安装尝试、检查错误、手动添加更多包、泡沫冲洗重复了一个多小时。

$ apt-get install zlib1g-dev libbz2-dev liblzma-dev libjpeg62 libjpeg62-dev 
$ python3 -m venv ansible
$ python3 -m pip install --upgrade pip
$ python3 -m pip install pillow
$ python3 -m pip install rust
$ python3 -m pip install setuptools-rust
$ python3 -m pip install ansible

This is just what I had to add to what had been a functional ansible venv running again. Oh, and there was some apt-get install python3.8 and some update-alternatives crap going on, too.  That one python library is causing major headaches for ubuntu 18.04 LTS.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM