如何解决在windows中安装web3 for python的问题



我正在尝试在windows 10上安装适用于python3.7.5的web3。但我每次都会犯这个错误。我不知道该怎么办,因为我已经安装了"Microsoft Visual C++14.0";和构建工具。我也试着在玻璃环境中安装,但最终还是出现了同样的错误。谢谢你的建议。

Building wheel for lru-dict (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:python38python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Žaneta\AppData\Local\Temp\pip-install-p2lk_xob\lru-dict\setup.py'"'"'; __file__='"'"'C:\Users\Žaneta\AppData\Local\Temp\pip-install-p2lk_xob\lru-dict\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersŽanetaAppDataLocalTemppip-wheel-89ed3hox'
cwd: C:UsersŽanetaAppDataLocalTemppip-install-p2lk_xoblru-dict
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------

问题已解决。Cytolz支持Python 2.7+和Python 3.4+。我有Python 3.8.5,所以现在我在Python 3.2上运行,Web3安装了

我知道这是旧的,但对于任何遇到这个问题的人来说,我通过遵循github 上发布的解决方案来解决它

这就是解决方案:

  1. 在此处安装Visual Studio生成工具
  2. 选择";用C++进行桌面开发";安装工作量(约6GB(
  3. 完成安装并重新启动电脑
  4. 打开终端并重试pip-install-web3

所需工作负载的屏幕截图

给定错误消息:

error: Microsoft Visual C++ 14.0 or greater is required. 

您可能只需要Microsoft Visual C++14.0或更高版本。

最新更新