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/
pip install web3
"""
Building wheel for bitarray (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'D:\Anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\38455\\AppData\\Local\\Temp\\pip-install-hemc42g_\\bitarray_71340fb29f9b4052ac6c78db6691096b\\setup.py'"'"'; __file__='"'"'C:\\Users\\38455\\AppData\\Local\\Temp\\pip-install-hemc42g_\\bitarray_71340fb29f9b4052ac6c78db6691096b\\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'"'"'))' bdist_wheel -d 'C:\Users\38455\AppData\Local\Temp\pip-wheel-5vwy5xi_'
cwd: C:\Users\38455\AppData\Local\Temp\pip-install-hemc42g_\bitarray_71340fb29f9b4052ac6c78db6691096b\
Complete output (60 lines):
running bdist_wheel
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
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\38455\AppData\Local\Temp\pip-install-hemc42g_\bitarray_71340fb29f9b4052ac6c78db6691096b\setup.py", line 18, in <module>
setup(
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
return run_commands(dist)
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "D:\Anaconda\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "D:\Anaconda\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "D:\Anaconda\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "D:\Anaconda\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "D:\Anaconda\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 327, in compile
self.initialize()
File "D:\Anaconda\lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 224, in initialize
vc_env = _get_vc_env(plat_spec)
File "D:\Anaconda\lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "D:\Anaconda\lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for bitarray
Running setup.py clean for bitarray
Failed to build bitarray
Installing collected packages: bitarray, async-timeout, websockets
Attempting uninstall: bitarray
Found existing installation: bitarray 2.3.0
Uninstalling bitarray-2.3.0:
Successfully uninstalled bitarray-2.3.0
Running setup.py install for bitarray ... error
ERROR: Command errored out with exit status 1:
command: 'D:\Anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\38455\\AppData\\Local\\Temp\\pip-install-hemc42g_\\bitarray_71340fb29f9b4052ac6c78db6691096b\\setup.py'"'"'; __file__='"'"'C:\\Users\\38455\\AppData\\Local\\Temp\\pip-install-hemc42g_\\bitarray_71340fb29f9b4052ac6c78db6691096b\\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\38455\AppData\Local\Temp\pip-record-0tgoaqnp\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda\Include\bitarray'
cwd: C:\Users\38455\AppData\Local\Temp\pip-install-hemc42g_\bitarray_71340fb29f9b4052ac6c78db6691096b\
Complete output (14 lines):
running install
D:\Anaconda\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.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
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:\anaconda\lib\site-packages\bitarray-2.3.0.dist-info\
from D:\Anaconda\Lib\site-packages\~itarray-2.3.0.dist-info
Moving to d:\anaconda\lib\site-packages\bitarray\
from D:\Anaconda\Lib\site-packages\~itarray
ERROR: Command errored out with exit status 1: 'D:\Anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\38455\\AppData\\Local\\Temp\\pip-install-hemc42g_\\bitarray_71340fb29f9b4052ac6c78db6691096b\\setup.py'"'"'; __file__='"'"'C:\\Users\\38455\\AppData\\Local\\Temp\\pip-install-hemc42g_\\bitarray_71340fb29f9b4052ac6c78db6691096b\\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\38455\AppData\Local\Temp\pip-record-0tgoaqnp\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda\Include\bitarray' Check the logs for full command output.
"""
Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/ ??? I didn’t get it anyway. 下载了很多.exe文件还是没有解决,最后找到一个还算可以的文件安装,安装后再次pip install web3,他就行了。 链接:https://pan.baidu.com/s/19F4YurwwZ5A9WF5txzMZoQ 提取码:ka7q
|