简体   繁体   English

断言错误:将使用不受支持的标签构建轮子('cp310'、'cp310'、'linux_x86_64')

[英]AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64')

I've got this message when I try to install numpy using Python 3.10.当我尝试使用 Python 3.10 安装 numpy 时收到此消息。

How to fix this?如何解决这个问题?

  Copying numpy.egg-info to build/bdist.linux-x86_64/wheel/numpy-1.19.3-py3.10.egg-info
  running install_scripts
  Traceback (most recent call last):
    File "/home/walenty/.local/lib/python3.10/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
      main()
    File "/home/walenty/.local/lib/python3.10/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/walenty/.local/lib/python3.10/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-plb3t7s6/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 211, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-plb3t7s6/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 197, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-plb3t7s6/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 248, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-plb3t7s6/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 142, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 508, in <module>
      setup_package()
    File "setup.py", line 500, in setup_package
      setup(**metadata)
    File "/tmp/pip-install-p3yq92pw/numpy/numpy/distutils/core.py", line 169, in setup
      return old_setup(**new_attr)
    File "/tmp/pip-build-env-plb3t7s6/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 165, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.10/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/lib/python3.10/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python3.10/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-plb3t7s6/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 328, in run
      impl_tag, abi_tag, plat_tag = self.get_tag()
    File "/tmp/pip-build-env-plb3t7s6/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 278, in get_tag
      assert tag in supported_tags, "would build wheel with unsupported tag {}".format(tag)
  AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64')
  ----------------------------------------
  ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly

It's a bug in python 3.10, a workaround is installing numpy with the --no-use-pep517 flag.这是 python 3.10 中的一个错误,解决方法是--no-use-pep517标志安装 numpy。 Eg: pip3.10 install numpy --no-use-pep517例如: pip3.10 install numpy --no-use-pep517

There's a fix for this on the way though, so just waiting is an option as well.不过,在路上有一个解决方案,所以等待也是一种选择。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 XX-cp36-cp36m-linux_x86_64.whl 不支持此平台上的轮子 - XX-cp36-cp36m-linux_x86_64.whl is not supported wheel on this platform ImportError with _event.cpython-310-x86_64-linux-gnu.so:未定义符号:_PyGen_Send - ImportError with _event.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send 无法在新的ubuntu分区上安装tensorflow:在这个平台上不支持tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl - Cannot install tensorflow on fresh ubuntu partition: tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl is not a supported wheel on this platform X310 USRP 与 python - X310 USRP with python torch-1.1.0-cp37-cp37m-win_amd64.whl 在此平台上不受支持 - torch-1.1.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform 错误:Twisted-20.3.0-cp39-cp39-win_amd64.whl 在此平台上不受支持 - ERROR: Twisted-20.3.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform 错误:Twisted-20.3.0-cp38-cp38-win_amd64.whl 不是此平台支持的轮子 - ERROR: Twisted-20.3.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform 错误:pyHook-1.5.1-cp37-cp37m-win_amd64.whl 在此平台上不受支持 - ERROR: pyHook-1.5.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform 此平台不支持Twisted-18.9.0-cp37-cp37m-win_amd64.whl - Twisted-18.9.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform 错误:mysqlclient-1.4.6-cp38-cp38-win_amd64.whl 在此平台上不受支持 - ERROR: mysqlclient-1.4.6-cp38-cp38-win_amd64.whl is not a supported wheel on this platform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM