python setup.py bdist_wheel未成功运行(python 3.10)

e3bfsja2  于 2022-10-30  发布在  Python
关注(0)|答案(2)|浏览(1727)

我是数据科学的新手,我需要用python 3.10在我的M1芯片上安装scikit-surprise。但是我得到了这个错误。不知何故,我经常在python 3.10上得到这个消息。
我只使用pip安装
python setup.py bdist_wheel did not run successfully (python 3.10)
然后我得到这个错误,我该怎么办?
python setup.py bdist_wheel did not run successfully (python 3.10)

Building wheel for scikit-surprise (setup.py) ... error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [101 lines of output]
      /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-universal2-3.10
      creating build/lib.macosx-10.9-universal2-3.10/surprise
      copying surprise/builtin_datasets.py -> build/lib.macosx-10.9-universal2-3.10/surprise
      copying surprise/__init__.py -> build/lib.macosx-10.9-universal2-3.10/surprise
      copying surprise/dump.py -> build/lib.macosx-10.9-universal2-3.10/surprise
...

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Note: you may need to restart the kernel to use updated packages.```
laawzig2

laawzig21#

试着跑

pip install wheel

在运行pip install scikit-surprise之前

dm7nw8vv

dm7nw8vv2#

试试pip install attrdict3,它对我很有效

相关问题