簡體   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