error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [957 lines of output] /tmp/pip-install-ghka74x3/scikit-image_f9cd69ed45194c87ba62c6ccafc0cbf4/setup.py:77: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python >= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools < 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html from numpy.distutils.core import setup
时间: 2024-02-15 13:28:12 浏览: 49
这个错误可能是因为你安装的scikit-image库不兼容你当前使用的Python版本或者numpy版本。你可以尝试升级numpy或者使用适用于当前Python版本的scikit-image版本来解决这个问题。同时,也可以尝试使用setuptools < 60.0来代替numpy.distutils,或者升级到Python >= 3.12版本。
相关问题
error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [187 lines of output]
这个错误通常表示在运行命令 `python setup.py bdist_wheel` 时出现了问题。其中的 `exit code: 1` 表示命令执行失败,可能有多种原因导致。下面是一些常见的解决方法:
1. 检查错误消息的输出详细信息,看看是否提供了更具体的错误描述。这可以帮助你更好地理解问题所在。
2. 确保你已经安装了项目所需的所有依赖项。可以使用 `pip` 命令来安装缺失的依赖项,例如:`pip install -r requirements.txt`。
3. 确保你的环境中已经安装了正确版本的 Python。有时候使用不兼容的 Python 版本会导致构建失败。
4. 检查项目中是否存在必要的构建文件,如 `setup.py` 或 `requirements.txt`。确保这些文件存在且配置正确。
5. 尝试清除项目目录下的构建缓存,然后重新运行构建命令。你可以删除 `build` 和 `dist` 目录,然后再次运行 `python setup.py bdist_wheel`。
如果上述方法都无法解决问题,建议你提供更详细的错误信息,以便我可以提供针对性的帮助。
Building wheel for box2d-py (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully.
这个错误可能是由于缺少一些依赖项或者在运行 `python setup.py bdist_wheel` 时出现了一些错误。你可以尝试以下步骤来解决问题:
1. 确保你已经安装了 `setuptools` 和 `wheel`,可以使用以下命令安装它们:
```
pip install setuptools wheel
```
2. 确保你已经安装了 `Cython`,可以使用以下命令安装它:
```
pip install cython
```
3. 确保你已经安装了 `Box2D` C++ 库,具体安装方法可以参考官方文档。
4. 确保你已经安装了 `Box2D` Python 库,可以使用以下命令安装:
```
pip install box2d-py
```
如果上述步骤都没有解决问题,你可以尝试从源码安装 `box2d-py`,具体操作可以参考官方文档。如果还有问题,建议提供更多的错误信息来帮助定位问题。