0

我正在使用 python 3.9.7 PS C:\Program Files\Python39> pip install web3 ... 这是红色错误消息中的部分:

  Running setup.py install for bitarray ... error
ERROR: Command errored out with exit status 1:
 command: 'C:\Program Files\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\QUI\\AppData\\Local\\Temp\\pip-install-8r0e8eer\\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\\setup.py'"'"'; __file__='"'"'C:\\Users\\QUI\\AppData\\Local\\Temp\\pip-install-8r0e8eer\\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\\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\QUI\AppData\Local\Temp\pip-record-107_ynkk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\QUI\AppData\Roaming\Python\Python39\Include\bitarray'
     cwd: C:\Users\QUI\AppData\Local\Temp\pip-install-8r0e8eer\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\
Complete output (13 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\bitarray
copying bitarray\test_bitarray.py -> build\lib.win-amd64-3.9\bitarray    copying bitarray\test_util.py -> build\lib.win-amd64-3.9\bitarray    
copying bitarray\util.py -> build\lib.win-amd64-3.9\bitarray
copying bitarray\__init__.py -> build\lib.win-amd64-3.9\bitarray     
running build_ext
building 'bitarray._bitarray' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with 

《微软 C++ 构建工具》:https ://visualstudio.microsoft.com/visual-cpp-build-tools/ ------------------------- --------------- 错误:命令出错,退出状态为 1:'C:\Program Files\Python39\python.exe' -u -c 'import io, os, sys,设置工具,标记化;sys.argv[0] = '"'"'C:\Users\QUI\AppData\Local\Temp\pip-install-8r0e8eer\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\setup.py'"'"'; file ='"'"'C:\Users\QUI\AppData\Local\Temp\pip-install-8r0e8eer\bitarray_3b8d63f53f724d4f910c7c1d5014a41b\setup.py'"'"';f = getattr(tokenize, '"'"'open' "'"', open)( file ) if os.path.exists( file ) else io.StringIO(' "'"' 从 setuptools 导入设置;setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f .close();exec(编译(代码,文件,'"'"'exec'"'"'))' 安装 --record 'C:\Users\QUI\AppData\Local\Temp\pip-record-107_ynkk\install-record.txt' --single- version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\QUI\AppData\Roaming\Python\Python39\Include\bitarray' 检查日志以获取完整的命令输出。

4

0 回答 0