无法在我的 Windows 10 上安装 "Turicreate"

Unable to install "Turicreate" on my Windows 10

我是 Python 的新手,我正在尝试按照教程构建推荐引擎。教程要求我安装 turicreate,我在 Anaconda 上安装的是 运行 Spyder 3.3.0(Python 版本 3.5)。

我尝试了什么 - 我从各种 SO 问题以及 github 寻求帮助,但 none 提供了帮助。我尝试使用 "pip" 并给出了以下错误 -

Failed building wheel for turicreate Running setup.py clean for turicreate Failed to build turicreate

已尝试 "conda install ",但再次出错。

Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels:- turicreate

我的 "pip" 和 "conda" 以及 "anaconda" 是最新的。我尝试创建一个虚拟环境,然后安装 "turicreate",但没有帮助。我访问了具有 "conda install -c derickl turicreate" 的 anaconda.org 网站,我尝试了,它给出了以下错误。

PackagesNotFoundError: The following packages are not available from current channels:- turicreate

如有任何帮助,我们将不胜感激。

如果您转到 Python 存储库索引 (PyPI) 上的 turicreate 包的 page,您会发现它只能本地安装在 Linux 和 macOS。

在 Windows 上使用它的唯一方法是通过 Windows Subsystem for Linux,为此你需要在上面安装 Anaconda 或 Python(我想,我从来没有使用 WSL)。

我想你的问题已经解决了:)。但我有一个类似的问题,我用不同的方式解决了它。我发布它是因为我认为它将来对某人有所帮助。首先,我想说,如果您正在关注上述问题中提到的视频教程之类的内容,请使用该方法。谢谢!

  1. 首先转到此 Link URL。它将引导您使用 python 版本 2.
  2. 进行协作
  3. 我的运行时间设置如下。运行时类型:python 2 |硬件加速器: 热塑性聚氨酯
  4. 然后 运行 !pip install turicreate 完成安装后会显示 You must restart the runtime in order to use newly installed versions。重新启动后 运行time 你将可以使用 turicreate 和 colab。

希望对大家有所帮助!