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

tzdcorbm  于 2022-11-09  发布在  Python
关注(0)|答案(1)|浏览(126)

当我运行命令pip install scrapy时,它显示以下错误:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-sbbmgfjk/cryptography/
我试过用pip install --upgrade setuptools升级它,但是好像不管用。有什么建议吗?

vlju58qv

vlju58qv1#

看起来加密包(截至今天)现在需要添加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.

相关问题