【发布时间】:2018-12-09 08:41:35
【问题描述】:
我正在尝试在旧 Mac (El Capitan) 上安装 turicreate beta 2(版本 5.0b2),但终端会抛出此错误:
Could not find a version that satisfies the requirement turicreate==5.0b2 (from versions: 4.1, 4.1.1, 4.2)
No matching distribution found for turicreate==5.0b2
当我输入这个时:
sudo python3.6 -m pip install turicreate==5.0b2
或者这个:pip3 install turicreate==5.0b2
所以我尝试安装“基本”版本(sudo python3.6 -m pip install turicreate,python3.6 -m pip install turicreate,pip3 install -U turicreate,pip3 install turicreate),但这一次,错误是:
Could not find a version that satisfies the requirement coremltools==0.8 (from turicreate) (from versions: )
No matching distribution found for coremltools==0.8 (from turicreate)
有谁知道是否可以在 El Capitan 上安装 turicreate 以及如何安装?
【问题讨论】:
-
pip3 install -U git+https://github.com/apple/turicreate.git会直接从 GitHub 上的主分支安装 Turi Create。 -
这个命令输出:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3q/xfr2ttbd0gl0wzmvc267pwv40000gp/T/pip-req-build-i3ftug_y/并说它没有找到文件 -
啊,是的,
setup.py文件不在 repo 的顶级文件夹中。它位于src/unity/python/。您可以尝试从该文件夹手动运行setup.py。 -
我可能看起来很愚蠢,但我不太了解 Github 终端安装。那么,如何手动运行
setup.py? -
pip 将文件放在文件夹
/private/var/folders/3q/xfr2ttbd0gl0wzmvc267pwv40000gp/T/pip-req-build-i3ftug_y/中。使用终端去那里,然后进入 src/unity/python 并运行python setup.py。不知道这是否可行,但这是我接下来要尝试的。
标签: python macos osx-elcapitan coreml turi-create