【问题标题】:Failed to install turicreate by anacondaanaconda 安装 turicreate 失败
【发布时间】:2019-12-04 14:34:43
【问题描述】:

当我尝试在我的 python 文件中导入 turicreate 时出现 modulenotfounderror。 我已经安装了 Anaconda 并使用以下语句来安装 turicreate:

conda create -n turi python=3.7 anaconda

source activate turi

pip install turicreate

安装后出现以下错误:

Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - turicreate

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

环境:

Macos:10.13.6 蟒蛇:3.7.3 康达:4.1.10

一些代码:

import pandas as pd
import numpy as np
import time
import turicreate as tc
from sklearn.cross_validation import train_test_split

import sys
sys.path.append("..")
customers=pd.read_csv('bijing/testdata/data/recommend_1.csv')
transactions=pd.read_csv('bijing/testdata/data/trx_data.csv')
print(customers.shape)
customers.head()

【问题讨论】:

  • 你安装了吗?我没有看到任何相关的命令
  • 我想我安装 turicreate by pip install turicreate 失败
  • 这个命令是什么时候执行的,应该在trui激活后安装
  • 激活turiSolving environment: failed with current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - turicreate 后还是报错
  • 您可以更新您的问题并发布有关错误的更多信息

标签: python anaconda turi-create


【解决方案1】:
#Create a new environment named `trui` with a specific version of Python=3.6 
$ conda create -n trui python=3.6
#Activate the environment - trui
$ conda activate trui
$ pip install -U turicreate

然后你在这个环境下做任何事情。

【讨论】:

  • 我已经重新安装了2.7版本的anaconda,并成功使用python=2.7运行。
  • @PoppyBee 太棒了!
猜你喜欢
  • 2020-01-23
  • 2019-03-14
  • 2019-06-07
  • 2020-12-25
  • 1970-01-01
  • 2019-05-02
  • 2023-01-09
  • 1970-01-01
  • 2018-01-14
相关资源
最近更新 更多