在macOS(Python 3.8)下安装Turicreate失败的求助
解决macOS下Python3.8安装Turicreate找不到适配二进制包的问题
已知环境与已尝试操作
- 系统:macOS 14
- Python版本:3.8.6
- pip版本:24.0(对应Python3.8)
- 已执行操作:
- 直接运行
pip3.8 install turicreate,终端输出installing to build/bdist.macosx-14-arm64/wheel后报错 - 通过Rosetta启动终端执行安装,输出
installing to build/bdist.macosx-10.9-x86_64/wheel仍报错 - 已更新pip至要求版本,确认Anaconda为x86_64架构
- 执行过
pip install wheel、pip install -U turicreate命令
- 直接运行
错误信息
- 出现
SetuptoolsDeprecationWarning警告 - Turicreate提示:未找到适配当前环境的二进制包(尽管环境符合官方标注的支持平台与Python版本)
解决方案
1. 指定兼容版本与平台强制安装
Turicreate针对Python3.8的macOS二进制包仅支持旧版系统(如10.14-11.x),即使通过Rosetta转x86_64,macOS 14仍可能被判定为不兼容。可以指定具体版本并强制匹配旧系统平台:
pip3.8 install turicreate==6.4.1 --platform macosx_10_14_x86_64 --only-binary=:all:
2. 降级Setuptools解决兼容警告
pip24.0搭配的高版本Setuptools可能与Turicreate旧版本不兼容,导致警告并干扰安装流程。先降级Setuptools:
pip3.8 install setuptools==58.0.4
降级完成后再重新执行Turicreate安装命令。
3. 利用conda环境安装(推荐Anaconda用户)
Apple维护的conda频道提供适配macOS的Turicreate包,可避免pip的平台检测问题:
# 创建并激活Python3.8的conda环境 conda create -n turicreate_env python=3.8.6 conda activate turicreate_env # 从Apple频道安装 conda install -c apple turicreate
4. 手动下载适配wheel包安装
找到对应Python3.8、x86_64架构、macOS 10.14版本的Turicreate wheel包(如turicreate-6.4.1-cp38-cp38-macosx_10_14_x86_64.whl),下载后本地安装:
pip3.8 install /path/to/downloaded/turicreate-6.4.1-cp38-cp38-macosx_10_14_x86_64.whl
内容的提问来源于stack exchange,提问作者ALEXIA MARIA POPESCU
相关产品推荐
相关产品推荐

