问题遇到的现象和发生背景
我在按装web3py时出现error: Microsoft Visual C++ 14.0 or greater is required.
但我按装上 Microsoft Visual C++ 14.0后, 却还是出现这个报错, 求有懂的帮忙解决
问题相关代码,请勿粘贴截图
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.