无法安装 web3。我收到一条错误消息,说版本不满足要求 rusty-rlp

Posted

技术标签:

【中文标题】无法安装 web3。我收到一条错误消息,说版本不满足要求 rusty-rlp【英文标题】:Unable to install web3. I get an error saying version does not satisfy requirement rusty-rlp 【发布时间】:2021-01-17 16:50:51 【问题描述】:

我正在尝试为 Python 安装一些软件包。安装 web3 时,我收到一条错误消息,说没有满足 rusty-rlp 的版本。其他软件包安装正常。我正在使用

pip 版本:20.2.3

python 版本:3.8.5

操作系统:Windows 10

IDE:PyCharm 社区版

Collecting web3
  Using cached web3-5.12.1-py3-none-any.whl (467 kB)
Requirement already satisfied: jsonschema<4.0.0,>=3.2.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from web3) (3.2.0)
Collecting pypiwin32>=223; platform_system == "Windows"
  Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting lru-dict<2.0.0,>=1.1.6
  Using cached lru-dict-1.1.6.tar.gz (9.4 kB)
Collecting eth-account<0.6.0,>=0.5.3
  Using cached eth_account-0.5.3-py3-none-any.whl (94 kB)
Collecting eth-hash[pycryptodome]<1.0.0,>=0.2.0
  Using cached eth_hash-0.2.0-py3-none-any.whl (7.2 kB)
Collecting hexbytes<1.0.0,>=0.1.0
  Using cached hexbytes-0.2.1-py3-none-any.whl (6.0 kB)
Collecting ipfshttpclient<1,>=0.4.13
  Using cached ipfshttpclient-0.6.1-py3-none-any.whl (231 kB)
Collecting eth-utils<2.0.0,>=1.9.5
  Using cached eth_utils-1.9.5-py3-none-any.whl (23 kB)
Collecting eth-typing<3.0.0,>=2.0.0
  Using cached eth_typing-2.2.2-py3-none-any.whl (6.2 kB)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from web3) (2.24.0)
Collecting eth-abi<3.0.0,>=2.0.0b6
  Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Collecting websockets<9.0.0,>=8.1.0
  Using cached websockets-8.1-cp38-cp38-win32.whl (65 kB)
Collecting protobuf<4,>=3.10.0
  Using cached protobuf-3.13.0-py2.py3-none-any.whl (438 kB)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (0.17.3)
Requirement already satisfied: six>=1.11.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (1.15.0)
Requirement already satisfied: attrs>=17.4.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (20.2.0)
Requirement already satisfied: setuptools in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (47.1.0)
Requirement already satisfied: pywin32>=223 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from pypiwin32>=223; platform_system == "Windows"->web3) (228)
Collecting bitarray<1.3.0,>=1.2.1
  Using cached bitarray-1.2.2.tar.gz (48 kB)
Collecting eth-rlp<1,>=0.1.2
  Using cached eth_rlp-0.2.0-py3-none-any.whl (5.0 kB)
Collecting rlp<=2.0.0.alpha-1,>=1.0.0
  Using cached rlp-2.0.0a1-py2.py3-none-any.whl (19 kB)
Collecting eth-keys!=0.3.2,<0.4.0,>=0.2.1
  Using cached eth_keys-0.3.3-py3-none-any.whl (20 kB)
Collecting eth-keyfile<0.6.0,>=0.5.0
  Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting pycryptodome<4,>=3.6.6; extra == "pycryptodome"
  Using cached pycryptodome-3.9.8-cp38-cp38-win32.whl (14.1 MB)
Collecting multiaddr>=0.0.7
  Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting cytoolz<1.0.0,>=0.10.1; implementation_name == "cpython"
  Using cached cytoolz-0.11.0.tar.gz (477 kB)
Requirement already satisfied: idna<3,>=2.5 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (1.25.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (2020.6.20)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (3.0.4)
Collecting parsimonious<0.9.0,>=0.8.0
  Using cached parsimonious-0.8.1.tar.gz (45 kB)
ERROR: Could not find a version that satisfies the requirement rusty-rlp<0.2,>=0.1.15 (from rlp<=2.0.0.alpha-1,>=1.0.0->eth-account<0.6.0,>=0.5.3->web3) (from versions: none)
ERROR: No matching distribution found for rusty-rlp<0.2,>=0.1.15 (from rlp<=2.0.0.alpha-1,>=1.0.0->eth-account<0.6.0,>=0.5.3->web3)

尝试在 PyCharm 上安装软件包时,我继续收到此错误。

【问题讨论】:

【参考方案1】:

我有同样的问题。 当我尝试安装 rusty-rlp 包本身并从网上下载文件时,我意识到 32 位 python 安装没有选项(***或 zip 文件)。 我使用的是 64 位 Windows PC,但由于某种原因,我运行了 Python-32bit 版本,所以我安装了 Python38-64bit 并再次运行 Pip,web3 的问题就消失了。

试试吧,如果您需要更多信息,请告诉我!

【讨论】:

当我在安装了 Python 3.9 64 位的 Mac OS 中尝试 pip3 install web3 时遇到类似的错误。【参考方案2】:

@viken 的回答是真的!但就我而言,我必须卸载 Python 3.9 并安装 Python 3.8.7 才能安装 rusty-rlp。

【讨论】:

以上是关于无法安装 web3。我收到一条错误消息,说版本不满足要求 rusty-rlp的主要内容,如果未能解决你的问题,请参考以下文章

ReferenceError:全局未使用 web3 定义

我收到一条错误消息,说只有虚拟功能可以标记为覆盖

安装 web3.py 时收到错误

尝试记录 Remix 合同时旧版本的 Web3 出错

运行“npm run build”时,我收到一条错误消息“无法识别‘CI’”

运行我用 Angular js 编写的代码并收到一条我无法解决的错误消息