用于安装AI的Microsoft工具,但找不到库 [英] Microsoft Tools for AI Installed, But Libraries Aren't Found

查看:79
本文介绍了用于安装AI的Microsoft工具,但找不到库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为AI安装了Microsoft Tools。 但是,当我在Visual Studio中打开一个新的Python脚本并输入"import keras"时,我会在其下面出现绿色波形,并出现以下错误:


" Keras - Unknown Type" ;


我已经尝试关闭Visual Studio并再次打开程序,但无济于事。 不知道这里出了什么问题。

解决方案

嗨Soundersrule,


欢迎来到MSDN论坛。


经过研究,您是否通过在终端中运行命令来安装Keras?如果<跨度>&NBSP;
不是,你需要安装它,请查看这个文档:
https: //docs.microsoft.com/en-us/visualstudio/ai/installation?view=vs-2017#keras 。我建议你为python安装Anaconda环境框架,其中
包含运行Keras所需的所有软件包。


在安装Keras之前,请安装一个后端引擎:TensorFlow,Theano或CNTK。使用CNTK和Keras:

https:// docs.microsoft.com/en-us/cognitive-toolkit/using-cntk-with-keras


如果发生任何安装异常,请分享您项目和截图的详细步骤。我愿意重复它并给你一个反馈。


BTW,因为我们的论坛主要关注VS IDE问题,我发现Keras有一些指令和路线图来自这里:

https: //keras.io/ ,如果可能的话,你可以看看。关于如何使用Keras或更多相关问题,我建议您重定向
相应论坛
开始一个新线程以获得更好的支持。


期待你的回复。
J


Br


可能


I've installed Microsoft Tools for AI.  However, when I open a new Python script in Visual Studio and type in "import keras", I get a green squiggle under it with the following error:

"Keras - Unknown Type"

I've tried closing Visual Studio and opening the program again, to no avail.  Not sure what's going wrong here.

解决方案

Hi Soundersrule,

Welcome to the MSDN forum.

After researching, did you install Keras by running the command in a terminal? If  not, you need to install it , please check this Docs: https://docs.microsoft.com/en-us/visualstudio/ai/installation?view=vs-2017#keras. And I recommend you to install Anaconda environment framework for python, which has all the packages you need to run Keras.

Before installing Keras, please install one of its backend engines: TensorFlow, Theano, or CNTK. For using CNTK with Keras : https://docs.microsoft.com/en-us/cognitive-toolkit/using-cntk-with-keras .

If any installation exception occurs, please share us the detail steps of your project and screenshots. I am willing to repro it and give you a feedback.

BTW, since our forum mainly focus on VS IDE issue, I find that Keras have some instruction and roadmap from here: https://keras.io/, if possible you could have a look. About how to use Keras or more issue about it, I recommend you to redirect the appropriate forum to start a new thread for a better supporting.

Looking forwards your reply. J

Br

May


这篇关于用于安装AI的Microsoft工具,但找不到库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆