简体   繁体   English

无法导入“turicreate”模块

[英]Unable to Import 'turicreate' Module

I installed 'turicreate' using the command pip3 install turicreate , but still I get the follwing error我使用命令pip3 install turicreate安装了“turicreate”,但仍然出现以下错误

import turicreate as tc

Error:错误:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-7-5e19a42750e5> in <module>
----> 1 import turicreate as tc

ModuleNotFoundError: No module named 'turicreate'

Make sure you're using python 3 kernel in the jupyter notebook确保您在 jupyter 笔记本中使用 python 3 kernel

If you are using anaconda (which you probably do on windows), it's very possible that you've installed it in the wrong environment.如果您使用的是 anaconda(您可能在 Windows 上使用),则很可能您将它安装在错误的环境中。

You can install libraries directly from the notebook by running您可以通过运行直接从笔记本安装库

!pip install turicreate

After that, running !pip freeze should show that library installed.之后,运行!pip freeze应该会显示该库已安装。

For ubuntu 14.04 or above use the following method.对于ubuntu 14.04 or above请使用以下方法。

First of all, we need some dependencies.首先,我们需要一些依赖。

sudo apt-get install -y libstdc++6 python-setuptools
sudo easy_install pip
sudo pip install virtualenv

I recommend you to try these steps on virtualenv.我建议您在 virtualenv 上尝试这些步骤。

cd $YOUR_DIR
virtualenv venv
cd venv
source bin/activate

Now we successfully activated virtualenv.现在我们成功激活了 virtualenv。 Then run the following commands.然后运行以下命令。

pip install --upgrade pip
pip install turicreate

I hope it will fix your issue.我希望它能解决你的问题。 Thanks!谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM