水蟒无法安装turicreate

2024-05-23 22:39:02 发布

您现在位置:Python中文网/ 问答频道 /正文

尝试在python文件中导入turicreate时得到modulenotfounderror。 我已经安装了Anaconda并使用以下语句安装turicreat:

conda create -n turi python=3.7 anaconda

source activate turi

pip install turicreate

安装后出现以下错误:

^{pr2}$

环境:

在马科斯:10.13.6 python: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()

Tags: 文件csvimportreaddataassysanaconda
1条回答
网友
1楼 · 发布于 2024-05-23 22:39:02
#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

那么你在这种环境下做任何事情。在

相关问题 更多 >