【发布时间】:2021-12-02 08:00:15
【问题描述】:
我正在尝试在我的 Windows 机器上安装 web3。我正在使用 Visual Studio 代码终端来执行此操作。这两个命令我都用过。
- 点安装 web3
- pip3 安装 web3
我遇到的第一个错误与我能够安装的 Visual Studios 构建工具有关。现在当我运行命令时,我得到了这个错误。
ERROR: Command errored out with exit status 1: 'C:\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ealvarado\\AppData\\Local\\Temp\\pip-install-nfyoy3t_\\cytoolz_9d52991e4515405886466c30cd8781ec\\setup.py'"'"'; __file__='"'"'C:\\Users\\ealvarado\\AppData\\Local\\Temp\\pip-install-nfyoy3t_\\cytoolz_9d52991e4515405886466c30cd8781ec\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ealvarado\AppData\Local\Temp\pip-record-g88od3fy\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python310\Include\cytoolz' Check the logs for full command output.
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: You are using pip version 21.2.3; however, version 21.3 is available.
You should consider upgrading via the 'C:\Python310\python.exe -m pip install --upgrade pip' command.
【问题讨论】:
-
请不要发布错误图片。相反,将错误添加为文本并将其放入代码格式中。对于您的错误来源,web3 ist 仅支持到 python 3.9,请参阅 [pypi 页面(pypi.org/project/web3)。 Python 3.10 是相当新的。你绝对需要它吗?如果没有,请尝试使用旧版本
-
您能发布完整的日志,或者至少发布所有相关行吗?警告不是那么相关,但错误是,这可能是对之前发生的事情的总结,因此较早的日志行可能包含重要信息。