Gudiid 2021-12-27 22:00 采纳率: 50%
浏览 87
已结题

我在按装web3py时候出现error:Microsoft Visual C++ 14.0 or greater is required

问题遇到的现象和发生背景

我在按装web3py时出现error: Microsoft Visual C++ 14.0 or greater is required.

但我按装上 Microsoft Visual C++ 14.0后, 却还是出现这个报错, 求有懂的帮忙解决

img

问题相关代码,请勿粘贴截图
    Running setup.py install for bitarray ... error
   
 ERROR: Command errored out with exit status 1:
     command: 'd:\software\environment\python3.8.7\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ROG\\AppData\\Local\\Temp\\pip-install-ujrzt20t\\bitarray_8b35328884c447f4966ce0c3ff4415e7\\setup.py'"'"'; __file__='"'"'C:\\Users\\ROG\\AppData\\Local\\Temp\\pip-install-ujrzt20t\\bitarray_8b35328884c447f4966ce0c3ff4415e7\\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\ROG\AppData\Local\Temp\pip-record-7hb_bk4k\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\software\environment\python3.8.7\Include\bitarray'
         cwd: C:\Users\ROG\AppData\Local\Temp\pip-install-ujrzt20t\bitarray_8b35328884c447f4966ce0c3ff4415e7\
    Complete output (14 lines):
    running install
    d:\software\environment\python3.8.7\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running build
    running build_py
    creating build
    creating build\lib.win32-3.8
    creating build\lib.win32-3.8\bitarray
    copying bitarray\test_bitarray.py -> build\lib.win32-3.8\bitarray
    copying bitarray\test_util.py -> build\lib.win32-3.8\bitarray
    copying bitarray\util.py -> build\lib.win32-3.8\bitarray
    copying bitarray\__init__.py -> build\lib.win32-3.8\bitarray
    running build_ext
    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/
    ----------------------------------------
  Rolling back uninstall of bitarray
  Moving to d:\software\environment\python3.8.7\lib\site-packages\bitarray-2.3.4.dist-info\
   from D:\Software\Environment\Python3.8.7\Lib\site-packages\~itarray-2.3.4.dist-info
  Moving to d:\software\environment\python3.8.7\lib\site-packages\bitarray\
   from D:\Software\Environment\Python3.8.7\Lib\site-packages\~itarray

ERROR: Command errored out with exit status 1: 'd:\software\environment\python3.8.7\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ROG\\AppData\\Local\\Temp\\pip-install-ujrzt20t\\bitarray_8b35328884c447f4966ce0c3ff4415e7\\setup.py'"'"'; __file__='"'"'C:\\Users\\ROG\\AppData\\Local\\Temp\\pip-install-ujrzt20t\\bitarray_8b35328884c447f4966ce0c3ff4415e7\\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\ROG\AppData\Local\Temp\pip-record-7hb_bk4k\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\software\environment\python3.8.7\Include\bitarray' Check the logs for full command output.
  • 写回答

1条回答 默认 最新

  • Gudiid 2021-12-27 23:33
    关注

    已解决! 我自己捣鼓了好几天了才解决, 我准备写篇web3py按装血泪史

    评论

报告相同问题?

问题事件

  • 系统已结题 1月4日
  • 修改了问题 12月27日
  • 创建了问题 12月27日

悬赏问题

  • ¥15 MATLAB怎么通过柱坐标变换画开口是圆形的旋转抛物面?
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿